I was wrong about git stash...
Philomatics Philomatics
27.8K subscribers
150,874 views
7.5K

 Published On Jul 15, 2024

I always used a git stash based workflow when I quickly need to switch branches. In newer versions of git (since 2015), the git worktree command lets you check out multiple branches at the same time.

Get my awesome interactive git cheatsheet as soon as it's released here:
https://philomatics.com/git-cheatsheet/

My Top 10 git shortcuts:
   • My most used git aliases  

My video on git rebase
   • git rebase - Why, When & How to fix c...  

Fixing merge conflicts:
   • Never fear merge conflicts again - gi...  

Video on `git pull --rebase`:
   • Never* use git pull  

How to change your default editor in git:
   • My most used git aliases  

Use the following command to change your default editor to VSCode:

git config --global core.editor "code --wait"

If you use a different editor, just Google "git set text editor to $yourEditor", it's usually easy to find.

The git GUI client I use in this video:
https://www.sourcetreeapp.com/

0:00 - Typical git stash workflow
0:29 - Multiple working copies
1:06 - Real life example
4:31 - Other use cases

LEGAL DISCLAIMER
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Everything here is for informational purposes only. All non-licensed clips used for fair use commentary, criticism, and educational purposes. See Hosseinzadeh v. Klein, 276 F.Supp.3d 34 (S.D.N.Y. 2017); Equals Three, LLC v. Jukin Media, Inc., 139 F. Supp. 3d 1094 (C.D. Cal. 2015).

show more

Share/Embed