git 經常使用命令記錄
新建分支 而後推送到服務器
git branch 分支名
git push origin 分支名
查看分支
查看本地分支
git branch
查看遠程分支
git branch -r
查看全部分支
git branch -a
刪除分支
刪除本地分支
git branch -d 分支名
刪除遠程分支
git push -d origin 分支名
刪除遠程倉庫不存在的分支。
git remote prune origin
新建tag 而後推送到服務器
git tag tag名
git push origin tag名
查看和篩選tag
git tag
歡迎關注本站公眾號,獲取更多信息