Git Basics
Git Commands
git clone
git pull
--rebase: Instead of a merge, perform a rebase after fetching.
git push
git remote
-v, --verbose
set-url <name> <url>
git log
git diff
git tag
-a <tagname> <commit>
git describe
git status
git-rev-parse
git add
git rm
git mv
git reset
git revert
git commit
--ammend*
Git 版本控制系統(3) 還沒 push 前可以做的事
git branch
branch: create a new branch.
-d branch: Delete a branch. The branch must be fully merged in HEAD.
-D branch: Delete a branch irrespective of its merged status.
git checkout
branch: switch to branch
path: discard changes on working copy
git merge
git rebase
branch: Forward-port local commits base on the branch.
Git 分支 - 分支的新建與合併
Git Branch 的操作與基本工作流程
使用 git rebase 避免無謂的 merge
Pull with rebase
沒有留言:
張貼留言