Last active
October 10, 2015 19:08
-
-
Save evanslai/3737002 to your computer and use it in GitHub Desktop.
Git 常用指令
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 列出遠端有哪些 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