美文网首页
Git常用指令

Git常用指令

作者: hao_developer | 来源:发表于2023-04-13 15:11 被阅读0次

获取所有分支

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