|Version 2 (modified by nominolo, 7 years ago) (diff)|
Git for Darcs Users
Git supports interactive recording very similar to darcs.
git add -p
git add -i
The main difference is that Git does not automatically commit the changes. You have to do that manually using
git commit [-m "commit message"]
If you do not supply a commit message, it will open your default editor. If you want to abort the commit, use an empty commit message.
Tip: If you want to see the diff when you edit the commit message, use
git commit -v
darcs record -a
git commit -a
This will add and commit all (not ignored) files.
darcs changes --last <N>
git log -n <N>
darcs changes --summary
git log --stat
See git log --help for a lot of extra options, to refine the output.
TODO describe diff commands for index
git reset --hard
Note: git reset only resets the staged files, i.e., the things added with git add.