Git常用命令

一、上传代码到GitHub

1、在Github上新建仓库Repositories

2、本地任意目录下右键执行Git Base Here(本地需安装Git)

3、执行命令:git clone https://github.com/gallywang/sw.orm.tool.git,执行完之后会多一个文件夹sw.orm.tool

4、cd 切换到目录sw.orm.tool下,同时将sw.orm.tool代码拷贝到该目录

5、执行命令(注意命令后有一个点):git add .

6、执行命令:git commit -m '备注信息'

7、执行命令:git push -u origin master

posted @ 2020-02-17 16:09  软件开发-汪七北  阅读(88)  评论(0编辑  收藏  举报