与你分享
互联网的方方面面

git

本地分支

新建本地分支

git checkout -b <new_branch>

删除本地分支

git branch -D <branch>

切换本地分支

git checkout <branch>

获取本地分支列表

git branch --list

远程分支

同步远程分支列表

git remote update origin --prune

回滚远程代码

git reset --hard <commit_id>
git push origin HEAD --force
赞(1)
版权声明:本文采用知识共享 署名4.0国际许可协议 [BY-NC-SA] 进行授权
文章名称:《git》
文章链接:https://wph.im/232.html
本站资源仅供个人学习交流,请于下载后24小时内删除,不允许用于商业用途,否则法律问题自行承担。

相关推荐

  • 暂无文章