Git STASH Tutorial

preview_player
Показать описание

-----

What is the Git stash command, and how do you use it? Git stash allows you to set aside in-progress changes for later. In addition to simply saving drafts of your work, stashes can be manipulated in interesting ways to improve your Git workflow. In this tutorial I'll explain how to use Git stash (including common commands such as "git stash pop", "git stash list", "git stash show", "git stash drop", "git stash clear", and "git stash branch"). As always, I'll illustrate the concepts with live animations alongside the actual commands.

CHAPTERS
0:00 Intro
0:15 Git stash use-cases
1:12 Git stash: basic example
3:26 Multiple stashes & naming stashes
5:16 Git stash branches
6:00 Deleting stash entries
6:20 Git stash merge conflicts

MY TECH

TECH ACCESSORIES

VIDEO GEAR

Some of the links above are affiliate links which means, at no extra cost to you, I will make a small commission if you click them and make a qualifying purchase. Thanks for supporting the channel.

MUSIC CREDITS
Music from Uppbeat (free for Creators!):
License code: FC7DKHETA2DJGCMY

ICON CREDITS
Icons from Flaticon

ABOUT ME
An experienced tech professional with experience including software engineering management, and software engineering. Formerly at Amazon for over 6 years, and currently living in NYC.

FOLLOW

#git #linux #programming #github
Рекомендации по теме
Комментарии
Автор

Nice video. I think you can mention that git stash -u can add all the files (tracked and untracked) without the need to perform git add . .

IvanIvanov-ubqe
Автор

Excellent. Very few can deliver technical information with this sort of precision. Please, please, please keep these coming.

AkinBelieve
Автор

Your videos are an absolute gem. Thank you

mehdizahedi
Автор

Bro, ur git videos is incredibly azing, This saves lots of times to learn those useful command and understanding how it works, very much appreciated bro, these are all meats..

radvilardian
Автор

Animated way of explaining the stuff really helps. keep going. looking forward for much more git topics. subscribed

Sudhakar-msr
Автор

subscribed. your git tutorial is a gem please keep it up

roychang
Автор

Awesome video! The animations and layout are superb, they made it all perfectly clear to me.

treequin
Автор

Thanks a lot, It´s very useful. I was thinking how if you don't know the different git features like this, you might miss out on being more productive.

juandavidcardenas
Автор

new subscriber. best explain very very very nice

yssplays
Автор

Please make a video about git auto commits that when we merge origin/dev into local beta
Merge remote-tracking branch 'refs/remotes/origin/dev' into beta

y-rpwz
Автор

Hi, I have a question. Is the stack data specific to a particular branch, or is that stack stored globally across all branches? If i do git stash in one branch, and then if i switch branch and pop the stack there, what will happen?

FullMetalAlgorithmist
Автор

Hi bro i have one issue while cherry pick what is happening na example my bug fix is in fix1 branch which dev branch and i need to movie that in production branch so when i moved this thing in that prod branch it error while im compiling because of in prod old code is there and dev every person doing new changes are there my cherry pick changes are moved to some other lines so help me to resolve this bro

harikrishnan
Автор

I am curious about you and your career / mind. Why would you restart your Youtube account? I mean, I think you earned a lot of money working on Amazon, right?

OpenDeepLearning
Автор

How to roll back when a stash is pulled off?

user_account
Автор

can i pop the stash on another branch?

gentjanshtjefni
Автор

I dont get it why everyone want to use all that time-consuming and confusing version control systems. Back in the 90s we were also able to work in teams without all that fancy things. It's so annoying to spend hours to solve dozens of conflicts before each pull request.
After all, imho it just promotes chaos, so that everyone just codes whatever he wants instead of coordinating properly

stucka