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
Post a Comment