Commands
My collection of commandsWorkflow
⭐ Syncing
Simple workflowGitLab workflow⭐ Git flow
Tutorials
Solving problems
![image](/_next/image?url=https%3A%2F%2Fassets.super.so%2Fb87ee4ee-ff79-4169-8aca-1d9c91dc8a4d%2Fimages%2F83fca24f-7987-4deb-b585-009627798f83%2FUntitled.png&w=1080&q=90)
Source: http://justinhileman.info/article/git-pretty/git-pretty.png
- If work has been done on the wrong branch:
git stash
git checkout branch123
git stash apply
Once everything is back to normal, to clean the stash, remove it from the stash list:
git stash list
git stash drop <stash_name>