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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -