获取所有分支
git fetch
查看当前分支
git branch -a
切换分支:
git switch 分支名
或
git checkout 分支名
当前分支拉取主分支代码
git pull origin master
提交代码
第一步
git add .
第二步
git commit -m '说明'
第三步
git push
git fetch
git branch -a
git switch 分支名
或
git checkout 分支名
git pull origin master
第一步
git add .
第二步
git commit -m '说明'
第三步
git push
本文标题:Git常用指令
本文链接:https://www.haomeiwen.com/subject/maiaddtx.html
网友评论