git 的用法。。。。

 git remote -v   可以查看之前clone的时候的url

clone的具体步骤:git clone  git.asdfsaf.asgg.git    第一步。

 

 git branch   查看分支。。

 

 git remote show origin   看远程的分支。。

 

 

 git flow init      进入clone下来的文件夹后    第二步。

 

 git pull -u origin develop    不其他的代码下载到develop分支。。。如果没有这步,有的文件可能clone不下来。第三步。。。

 

提交的时候:

git add .        git commit -a -m "写备注。"     git push    

 

以后有重要的代码,再继续更新。

创建分支

 

 

git flow feature start sinaweibo-update

///完成一个功能了,记着把他关了。

 

git flow feature finish list-show       

 

 

 

 

猜你喜欢

转载自zhangmingwei.iteye.com/blog/2032966