Git Cheat Sheet
2015-07-28 10:44 shaobin0604 阅读(296) 评论(0) 收藏 举报Repository
Add multiple remote repository
$ git remote add <name> <url>
Merge
Undo git merge with conflicts
$ git merge --abort
Archive
$ git archive --format zip --output /full/path/to/zipfile.zip master
Branch
set remote tracking branch
$ git branch --set-upstream-to dev origin/dev
删除已经无效的本地只读远程分支引用
$  git remote prune origin
或
$ git fetch -p
Tag
查看 remote 的 tags
$ git ls-remote --tags
删除 tag
本地 tag
$ git tag -d v1.0.0
远程 tag
$ git push origin :refs/tags/v1.0.0
                    
                
                
            
        
浙公网安备 33010602011771号