|Craft a commit (hunks, commit only staged changes) ? [message #579185]
||Sun, 11 April 2010 11:10
|| Michael Pellaton
Registered: July 2009
I figured out how to stage all changes of a file in the commit dialog
(and then pressing cancel), and if the file gets changes afterwards,
it gets decorated accordingly. However, how can I now commit just the
staged changes - not all changes?
What EGit IMHO does right now is:
# commit all changes of the file
$ git commit -a
I am looking for the EGit equivalents of the following git commands:
# commit only staged changes
$ git commit
# unstage a file
$ git reset HEAD
# only stage some hunks of the changes of the file
$ git add -i
The following additional questions are all related to staging/
- How can I edit the hunks of a change?
- How can I diff the staged changes vs repo ($ git diff --cached)?
- How can I diff an entire project, not just a single file (context menu
always disbaled when diff is done on a project/package) ($ git diff)?
Powered by FUDForum
. Page generated in 0.02264 seconds