Git常用指令
2023-04-13 本文已影响0人
hao_developer
获取所有分支
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