Skip to content

Instantly share code, notes, and snippets.

@evanslai
Last active October 10, 2015 19:08
Show Gist options
  • Save evanslai/3737002 to your computer and use it in GitHub Desktop.
Save evanslai/3737002 to your computer and use it in GitHub Desktop.
Git 常用指令
# 列出遠端有哪些 branch
git branch -a
# If you want to check out a local working branch based on origin/test (checkout remote branch)
git checkout -b test origin/test
# Create branch $new_branch based on branch $other and switch to it
git checkout -b $new_branch $other
# 列出 tag
git log --no-walk --tags --pretty="%h %d %s" --decorate=full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment