git

git

 

 

1.登陆github,创建新的repository(仓库)

git

 

 

2.假设新建repository的项目名字是test,创建后如下

git

 

 

记住这个  github repository的地址。

 

 

3.在本机打开msys-git的命令行客户端,clone这个新项目到本地
git

 

 

4.添加项目代码或者一些其他的东西到这个test文件夹
git

 

 

5.切记,在刚才的test里git bash.使用git add .命git令将所有文件添加到本地repository

git

 

 

6.使用git commit -m "msg"命令将变动提交到本地repository:
git

 

 

7.使用git push "remote repository path"命令将本地仓库推送到远程仓库分支,github远程仓库的主分支路径默认是origin/master
git

 

 

8.刷新github仓库,已经提交上去
git

posted @ 2016-03-17 12:08 土伦 阅读(...) 评论(...) 编辑 收藏