git pull
git merge <branch-name>
git rebase <branch-name>
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
git cherry-pick <hash-code-of commit>
e.g. git cherry-pick df88675
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