Git STASH Tutorial

  Рет қаралды 27,446

The Modern Coder

The Modern Coder

Күн бұрын

Пікірлер: 44
@IvanIvanov-ub3qe
@IvanIvanov-ub3qe Жыл бұрын
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 . .
@AkinBelieve
@AkinBelieve 5 ай бұрын
Excellent. Very few can deliver technical information with this sort of precision. Please, please, please keep these coming.
@themoderncoder
@themoderncoder 5 ай бұрын
Appreciate the compliment! These vids end up taking a ton of time to make, but I’m committed to keeping them going at least once a month. Hopefully I can find a rhythm for 2 a month, but we’ll see…
@zakariyajeffali6520
@zakariyajeffali6520 Ай бұрын
@@themoderncoder *chuckles* "committed". I see what you did there.
@radvilardian740
@radvilardian740 Жыл бұрын
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..
@themoderncoder
@themoderncoder Жыл бұрын
Appreciate it man
@mehdizahedi2810
@mehdizahedi2810 4 ай бұрын
Your videos are an absolute gem. Thank you
@Sudhakar-msr
@Sudhakar-msr Жыл бұрын
Animated way of explaining the stuff really helps. keep going. looking forward for much more git topics. subscribed
@themoderncoder
@themoderncoder Жыл бұрын
Appreciate the sub!
@gadgetsexplain
@gadgetsexplain Жыл бұрын
Very useful teaching method
@roychang9506
@roychang9506 Жыл бұрын
subscribed. your git tutorial is a gem please keep it up
@themoderncoder
@themoderncoder Жыл бұрын
Thanks! I'm releasing more Git videos, so I hope those help as well
@treequin
@treequin Жыл бұрын
Awesome video! The animations and layout are superb, they made it all perfectly clear to me.
@themoderncoder
@themoderncoder Жыл бұрын
Awesome, appreciate you saying that
@FullMetalAlgorithmist
@FullMetalAlgorithmist 7 ай бұрын
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?
@themoderncoder
@themoderncoder 7 ай бұрын
Stash's are one stack per repository. So if you create a stash on one branch, switch branches, then pop the stash, it'll apply those changes into the working directory.
@FullMetalAlgorithmist
@FullMetalAlgorithmist 7 ай бұрын
@@themoderncoder Great, thanks!
@y-rp1wz
@y-rp1wz 2 ай бұрын
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
@knecks7374
@knecks7374 5 ай бұрын
Absolutely Awesome Big man! thanks
@alitahboub493
@alitahboub493 2 ай бұрын
Great video!!
@juanandrew1356
@juanandrew1356 Жыл бұрын
easy to understand, thanks sir
@juandavidcardenas1253
@juandavidcardenas1253 Жыл бұрын
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.
@themoderncoder
@themoderncoder Жыл бұрын
True, very much agree
@harikrishnan9967
@harikrishnan9967 5 ай бұрын
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
@themoderncoder
@themoderncoder 5 ай бұрын
I'm not 100% sure I understood your question, but a suggestion would be to rebase your "fix1" branch against production BEFORE cherry picking. This would at least minimize the amount of conflicting changes.
@harikrishnan9967
@harikrishnan9967 5 ай бұрын
@@themoderncoder im not talking about conflict, after resolving the conflict while I'm compile it is showing some errors because of cherry pick is stored in wrong lines in files
@magic0x0
@magic0x0 Жыл бұрын
Great tutorial 😮 Thank you 🙏🏻
@themoderncoder
@themoderncoder Жыл бұрын
You’re welcome 😊
@jacopopecchini2267
@jacopopecchini2267 3 ай бұрын
das ist wunderbar
@daumtto
@daumtto 6 ай бұрын
good explanation
@yssplays2620
@yssplays2620 4 ай бұрын
new subscriber. best explain very very very nice
@themoderncoder
@themoderncoder 4 ай бұрын
Thank you so much 🙂
@nishikantwairkar6866
@nishikantwairkar6866 6 ай бұрын
too good
@gentjanshtjefni4368
@gentjanshtjefni4368 5 ай бұрын
can i pop the stash on another branch?
@themoderncoder
@themoderncoder 5 ай бұрын
Yeah go for it. Stash on one branch, switch branches, then pop/apply the stash. Should work fine
@OpenDeepLearning
@OpenDeepLearning Жыл бұрын
I am curious about you and your career / mind. Why would you restart your KZbin account? I mean, I think you earned a lot of money working on Amazon, right?
@themoderncoder
@themoderncoder Жыл бұрын
The high-level reason is that KZbin is certainly not about the money
@OpenDeepLearning
@OpenDeepLearning Жыл бұрын
@@themoderncoder but about what?
@user_account3841
@user_account3841 10 ай бұрын
How to roll back when a stash is pulled off?
@themoderncoder
@themoderncoder 10 ай бұрын
It's not so easy to undo an accidental stash pop. There are two things to undo: 1) The stash was dropped from your stash list and needs to be recovered. 2) You need to rollback the modifications in your working directory that were added by the stash. Step 1 can be solved using something like this to recover the stash: copyprogramming.com/howto/undoing-accidental-git-stash-pop. But for step 2, it might be a matter of manually using "git restore" to remove any modifications you don't want. If anyone here in the comments know's a better was for step 2, let us know.
@stuck1a
@stuck1a 7 ай бұрын
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
@flexflex7600
@flexflex7600 5 ай бұрын
Lol
@ejovo
@ejovo 5 ай бұрын
Lol
@xxcrypt234
@xxcrypt234 Жыл бұрын
nice!
Resolve Git Stash Merge Conflicts
6:17
The Modern Coder
Рет қаралды 12 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 32 МЛН
Help Me Celebrate! 😍🙏
00:35
Alan Chikin Chow
Рет қаралды 85 МЛН
Synyptas 4 | Арамызда бір сатқын бар ! | 4 Bolim
17:24
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,1 МЛН
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 120 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 920 М.
How GIT works under the HOOD?
16:01
Tech With Nikola
Рет қаралды 200 М.
Git STASH Explained in Simple Words
9:45
Academind
Рет қаралды 126 М.
Git It? How to use Git and Github
12:19
Fireship
Рет қаралды 768 М.
Everything You'll Need to Know About Git with ThePrimeagen | Preview
14:43
How to be a git expert
46:26
Floating Little Leaves of Code
Рет қаралды 165 М.
Git rebase is not that scary
21:44
Hitesh Choudhary
Рет қаралды 22 М.