- 取得連結
- X
- 以電子郵件傳送
- 其他應用程式
#usage:
#example:
event/old_path/index.php is already in git commit log
event/old_path/index.php move to event/new_path/index.php
#show old log
#move file
#add changes to staging area
#commit changes
#display log ,just display new path log
#display full log, both new path and old path log
$ git log --follow path/to/file
#example:
event/old_path/index.php is already in git commit log
event/old_path/index.php move to event/new_path/index.php
#show old log
$ git log event/old_path/index.php
change wording
init
#move file
$ git mv event/old_path/index.php event/new_path/index.php
#add changes to staging area
$ git add event/new_path/index.php
#commit changes
$ git commit -m 'move file'
#display log ,just display new path log
$ git log event/new_path/index.php
move file
#display full log, both new path and old path log
$ git log --follow event/new_path/index.php
move file
change wording
init
留言