Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:git [2015/01/23 07:56] cyril [Editing commits] change author and date |
software:git [2016/01/28 22:02] (current) cyril [Editing commits] |
||
---|---|---|---|
Line 186: | Line 186: | ||
</ | </ | ||
- | Change author or date: use ```rebase -i```, chose " | + | Change author or date: use '' |
< | < | ||
git commit --amend --author "Name < | git commit --amend --author "Name < | ||
+ | </ | ||
+ | |||
+ | To split a commit: use '' | ||
+ | < | ||
+ | git reset --mixed @~ | ||
+ | git add -p . | ||
+ | git commit | ||
</ | </ | ||
==== Archive generation ==== | ==== Archive generation ==== | ||
Line 218: | Line 225: | ||
[[http:// | [[http:// | ||
+ | |||
+ | ==== Recovery ==== | ||
+ | |||
+ | For finding a lost commit you can use "git reflog" | ||
+ | |||
+ | For finding a lost stash (eg "git stash drop") or file (eg "git rm"), you can try "git fsck --full", | ||
+ | |||
+ | [[https:// |