2014年8月10日 星期日

[git] git log output to a file

Output log into log.log
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 :
  1. Git log output log file

Related Posts:

0 意見:

張貼留言