Git Notes

Apr 18, 2015

###Here are some useful git commands.

####Use git reflog to check the repo’s commit history.

git reflog

####Use git cherry-pick <commit ID> to apply your commit to current branch.

git cherrr-pick 0b23df2e

####Use git reset --hard <commit ID> to force roll back to an old version.

git reset --hard 0b23df2e

####Use git merge <branch name> to merge other branch to current one.

git merge dev_branch

Do Not Remain Silent

Back To Top