Skip to content

Instantly share code, notes, and snippets.

@alvan
Created August 15, 2017 03:38
Show Gist options
  • Save alvan/eed4c413effa2cb3fe4a17f5d6532330 to your computer and use it in GitHub Desktop.
Save alvan/eed4c413effa2cb3fe4a17f5d6532330 to your computer and use it in GitHub Desktop.
Git 实用命令
# Git 推送新的仓库
git remote add origin git@github.com:luokr/doc.luokr.com.git
git push -u origin master
# Git 删除所有远程tags
git show-ref --tag | awk '/(.*)(\s+)(.*)$/ {print ":" $2}' | xargs git push origin
# Git 删除所有本地tags
git tag | grep "v" | xargs git tag -d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment