DEV Community

Joshua Johnson
Joshua Johnson

Posted on

What questions do people have about Git?

I’m writing a new article and am interested in what questions people have about Git?

Top comments (3)

Collapse
 
massud1994 profile image
Madhu Sudhan Subedi •

If we accidentally amend new changes using 'git commit --amend --no-edit' But that changes should have new commit, How to separate latest changes for new commit ?

Collapse
 
joshualjohnson profile image
Joshua Johnson •

Hmm.. A tough one of course. However, the command you are describing was one designed around purposefully amending the last code edit without recording a new change. Because of this purposeful approach to amending, there is no way to undo.

Collapse
 
massud1994 profile image
Madhu Sudhan Subedi •

Yeah, but sometimes it is painful when accidentally amend the new changes.