How to combine new changes with previous commit in git -


i made commit , have additional changes if committed give me 2 commits & b.

what efficient way combine new changes ones previous commit end 1 commit?

git add -u && git commit --amend

this stage local changes , use them rewrite previous commit. note if you've pushed previous commit bad idea.


Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

c# - HwndSource win32 integration with Ribbons and KeyTips -