git添加新分支


1.查看分支

git branch

 

 

2.checkout出代码到分支test

git checkout -b test

3.添加到缓存

git add .

4.添加到本地库

git commit -m 'test commit !'

5.提交远程git

git push origin test

大功告成!

如果需要删除本地分支

git branch -d test即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM