git log –pretty=format:’%h : %s’ –graph > log.log
Jump to version
git reset –hard “commit - number”
Jump to origin
git reset –hard “commit - number”
--soft
Does not touch the index file or the working tree at all (but resets the head to <commit>, just like all modes do). This leaves all your changed files "Changes to be committed", as git status would put it.
--hard
Resets the index and working tree. Any changes to tracked files in the working tree since <commit> are discarded.
Reference :
0 意見:
張貼留言