Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » Craft a commit (hunks, commit only staged changes) ?
Craft a commit (hunks, commit only staged changes) ? [message #579185] Sun, 11 April 2010 11:10
Michael Pellaton is currently offline Michael Pellaton
Messages: 289
Registered: July 2009
Senior Member
Hello

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/
committing:
- 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)?

Thanks

Michael
Previous Topic:Team menu does not offer Share Project option
Next Topic:Stashing in EGit
Goto Forum:
  


Current Time: Wed Apr 23 19:53:10 EDT 2014

Powered by FUDForum. Page generated in 0.01413 seconds