Resolve Git Stash Merge Conflicts

  Рет қаралды 9,946

The Modern Coder

The Modern Coder

Күн бұрын

Learning any Git technique can be this easy: learngit.io/
-----
Learn how to resolve Git stash merge conflicts.
WRITTEN ARTICLE & REFERENCE: www.themoderncoder.com/fix-gi...
GIT STARTER GUIDES: www.themoderncoder.com/git/
DESCRIPTION
What is Git stash, and how do you use it? Git stash allows you to set aside in-progress changes for later; however, If changes introduced by the stash conflict with changes on the current branch, you will see a Git merge conflict.
CHAPTERS
0:00 Intro
0:21 Merge conflict example
1:32 Workarounds
2:19 Fix stash merge conflicts
5:10 Cleanup
MY TECH
2020 M1 MacBook Air (I have the 512GB variant): amzn.to/3TTIBsE
AirPods Pro: amzn.to/3sRLUo5
Chair: amzn.to/3zJI9Fa
Gaming headset: amzn.to/3zwbT8i
Headphones (newer model): amzn.to/3Ub5reT
Keyboard: amzn.to/3FOOOC7
Mouse: amzn.to/3WhMFV9
Monitor: www.dell.com/en-us/work/shop/...
Monitor arm (newer model): amzn.to/3gXnlUa
Webcam: amzn.to/3zxxwp0
TECH ACCESSORIES
Laptop stand: amzn.to/3NuyqZ5
Mouse pad/mat: amzn.to/3U9QFVO
KVM switch: amzn.to/3gZmpP0
PC case: amzn.to/3Fx4Hg5
Under desk drawer: amzn.to/3WloFAo
VIDEO GEAR
Camera: amzn.to/3WkbiRe
Lens: amzn.to/3zxiTC4
Microphone: amzn.to/3SSUoWE
Main key light: amzn.to/3WhZbny
Secondary light: amzn.to/3fpRefx
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!):
uppbeat.io/t/danijel-zambo/st...
License code: WMSWEE2JFSTQTGST
ICON CREDITS
Treasure icons created by shmai - 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
Blog: www.themoderncoder.com
Twitter: / themoderncoder
#git #linux #programming #github

Пікірлер: 10
@thisisreallyme3130
@thisisreallyme3130 Жыл бұрын
This helped TY. My use case didn't visually or exactly align with yours so I backed up my files, went with your instructions, and it worked. For other readers, before he creates the "git stash"... that's not shown, but what gave me confidence was: backup files, then git stash, then in my branch still I did "git branch -v" and "git show -1" to get the clean (committed) hash of where I was. then checkout main/master and "git pull" on that (just so I could have an up to date master to compare to), then switch back to my branch then did this video. Basically I wanted to be able to look at the hash IDs between branches, so I understood better that I could fast forward then pop my stash. Cheers
@surendrareddyGoluguri
@surendrareddyGoluguri 10 ай бұрын
Good Explanation and animations are really helpful to understand the work flow process😊👍. Keep it up the good work😊. Thanks for uploading this video👍.
@themoderncoder
@themoderncoder 10 ай бұрын
Thanks!
@aidoka2000
@aidoka2000 Жыл бұрын
awesome and neat and easy to follow explanation.
@tjmonkey15
@tjmonkey15 6 ай бұрын
Hugely helpful. Thank you!
@irfanrashid2114
@irfanrashid2114 3 ай бұрын
very helpful! thanks a lot for sharing
@gambarimas
@gambarimas Жыл бұрын
Hello. I have a question, are stashes linked back somehow to the commit where we were when we created them? What happens if I try to apply a stash in a commit that has completely new files?
@themoderncoder
@themoderncoder 11 ай бұрын
Yes, Git does track which commit the stashes were originally created from. You can use the "git stash branch" command to check out files into a new branch that's anchored off that original commit.
@gambarimas
@gambarimas 11 ай бұрын
@@themoderncoder Thanks for your answer. What about my second question?
@xxcrypt234
@xxcrypt234 Жыл бұрын
BRO thanks!
Delete Git Commits Tutorial
5:03
The Modern Coder
Рет қаралды 37 М.
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 80 М.
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
Creepy Teacher Kidnapped My Girlfriend?!
00:42
Alan Chikin Chow
Рет қаралды 15 МЛН
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 4,2 МЛН
All Rust string types explained
22:13
Let's Get Rusty
Рет қаралды 148 М.
Resolve Git Cherry Pick Merge Conflicts
5:52
The Modern Coder
Рет қаралды 33 М.
Resolve Git MERGE CONFLICTS: The Definitive Guide
8:02
The Modern Coder
Рет қаралды 27 М.
NEOVIM GIT PRODUCTIVITY: 2024
10:22
Ashish Alex
Рет қаралды 2,2 М.
Did you know this about merge? #git #coding
0:26
The Modern Coder
Рет қаралды 647
Creative AI Video Upscaling Will Blow Your Mind!
12:35
Theoretically Media
Рет қаралды 13 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 888 М.
Programming a Guessing Game in Rust!
13:22
Let's Get Rusty
Рет қаралды 105 М.
Git PULL vs FETCH
7:13
The Modern Coder
Рет қаралды 5 М.
The problem with Git Merge #git #coding
0:32
The Modern Coder
Рет қаралды 700