Applying last commit from one branch to another branch
git checkout A
git commit -m "Fixed bug x"
git checkout B
git cherry-pick Agit reset --hard HEAD~1git reset --soft HEAD~1git stash dropgit stash drop stash@{n}ga .
gc -m "..."
gp
git pull --autostash- supremely useful for when you have already done edits on your repo but you forgot to pull
- automatically stashes your changes
git clone --recurse-submodules (repo)