You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git rebase -i @~n # here n stands for to the n commit that we want to change# and inside we have to use reword# or if we want to change last then we have to use
git commit --amend
# here we have used git commit --amend for rewording last commit
Before renaming check de2da56
After renaming check de2da56
4. Cherry Pick
git cherry-pick <hash-code-of commit>
e.g. git cherry-pick df88675
Before cherry-pick
After cherry-pick
5. Drop commit
git rebase -i @~n # n from where to pick# and then inside choose the commit name# after choosing commit name use "drop" for dropping the commit!# and for last change simply used
git reset HEAD^ # and then commit it