Believe it or not, git checkout

https://lemmy.world/post/3019211

Believe it or not, git checkout - Lemmy.world

> Want to make a branch ? > git checkout > Want to make switch branches ? > git checkout > Want to get a specific file version ? > git checkout > Want to get remove changes to one file ? > Believe it or not, also > git checkout

Fun fact! If you have to quickly swap between two different branches you should try:

git checkout -

It will swap to the previous branch you were on. Have fun!

git switch - also works for this