iOS开发 git常用命令

# HTKG

航天科工服装定制项目(Personal Tailoring)   定制平台



1.clone


2.pod install --verbose --no-repo-update


3.git stauts   查看当前分支的修改状态


4.git branch gengpengpeng  建立一个分支“gengpengpeng”


5.git branch -a  查看本地和远程的分支list    ,常用的命令 git branch 等等


6.git checkout gengpengpeng   切换分支到“gengpengpeng”  


7.提交代码分两步:


第一步:git commit -m"modify by gpp"  or  git commit -a -m"mmodify by gpp"  

第二步:git push origin gengpengpeng

    

8.合并代码   


第一步切换到主干分支上来:git checkout master


第二步合并分支到主干:git merge gengpengpeng


第三步:git push

猜你喜欢

转载自blog.csdn.net/wenzfcsdn/article/details/54344333