How to Use Git Worktree | Checkout Multiple Git Branches at Once

  Рет қаралды 46,209

GitKraken

GitKraken

Күн бұрын

Пікірлер
@ChristerBlomqvist
@ChristerBlomqvist 2 жыл бұрын
I really like your presentation style and especially that you show the actual underlying git commands.
@DesT-x
@DesT-x 5 ай бұрын
This is really what I was looking for to implement in git repositories, work in multiple branches at the same time in my engineering projects !! Thank you ! :)
@Shinwe
@Shinwe 11 ай бұрын
Great and simple, thank you.
@ahirusan1147
@ahirusan1147 Жыл бұрын
Thank you for this tutorial, it makes years I was looking for that feature!
@dbt6572
@dbt6572 2 жыл бұрын
Thanks, Dwayne. Very clear.
@a_maxed_out_handle_of_30_chars
@a_maxed_out_handle_of_30_chars Жыл бұрын
thank you, simple and to the point :)
@neessaa8713
@neessaa8713 2 жыл бұрын
10/10 tutorial! thank you very much!
@GitKraken
@GitKraken 2 жыл бұрын
Glad it was helpful!
@graciborski
@graciborski Жыл бұрын
Beautiful introduction
@mateustymoniuk
@mateustymoniuk 2 жыл бұрын
You saved me from getting lost in stashes and temporary local branches, thanks a lot!
@bassam.2023
@bassam.2023 2 жыл бұрын
Useful tutorial, especially because you showed how things work in the background, that is, via the command line. Thanks!
@chrisidema
@chrisidema 2 жыл бұрын
Pretty neat. I hate stash as I can forget about it. I often create a new branch for temporary commits.
@yoavgro3
@yoavgro3 Жыл бұрын
I don't understand how the new work tree relates to remote. can you explain how can I push this worktree, create a pr on branches there later, etc.
@amansagar4948
@amansagar4948 6 ай бұрын
How is that different from cloning the repository again into a separate folder ?
@iTheoryon
@iTheoryon 6 ай бұрын
In a lot of ways it's the exact same, however it enables tools like VSC to support multiple copies, like he showed. If that doesn't have any value to you it's not a tool for you.
@HunterRoMike
@HunterRoMike 4 ай бұрын
Great presentation. Howveer I find git worktrees pretty useless, especially when working on huge projects with heavy IDEs. I'd rather just commit all changes, use a descriptive commit message, chenge branch and fix whatever bug needs to be fixed, and then just check out the original branch and git reset --soft HEAD~1 and continue working on whatever feature I was working on before.
@EE12345
@EE12345 Ай бұрын
So do you usually do 1 worktree per ticket / task you're working on? Any reason you'd ever need to have more than 1 branch you're actively developing on in a single worktree?
@ruixue6955
@ruixue6955 Жыл бұрын
1:10 1:22 2:50 3 git worktree commands 3:02 git worktree list 3:16 git worktree add 6:13 git worktree remove
@gersonscheffer2765
@gersonscheffer2765 2 жыл бұрын
great video.However I think commit with a message and after use squash it is more practical than using worktree
@jacques-dev
@jacques-dev 2 жыл бұрын
Does GitKraken support worktrees? I made a new worktree from the command line called `main`, and I can push pull fetch etc. just fine from the CLI. But when I open the repo in GitKraken and try to push or pull I get the following error: `could not determine remote for 'refs/remotes/origin/main'`
@danylohromyak5228
@danylohromyak5228 Жыл бұрын
Why does everyone use a terminal instead of a built-in vscode git GUI?
@kristupasqwert9888
@kristupasqwert9888 2 жыл бұрын
How would you link your node_modules with a new branch to avoid reinstalling deps?
@GitKraken
@GitKraken 2 жыл бұрын
I believe the same way you would normally when working in a branch. This is just a way to move a copy of a branch to another folder and should not cause breaking changes to the node workflow. Ultimately the .git folder is tracking these branches as it always does, just has multiple referenced at once.
@radekkokon3720
@radekkokon3720 2 жыл бұрын
Haven't tested it but I think a symbolic link to an existing node_modules directory from new branch might work.
@trusabaka9747
@trusabaka9747 8 ай бұрын
@@GitKraken It could be a good idea for you to show the same what you have shown here with the actual say, React, project. How it will work (or not?) when the worktree is checked out? Thank you.
@dannywidjaya7943
@dannywidjaya7943 5 ай бұрын
how is this better than simply cloning to a different folder? less mental load.
@apefu
@apefu 2 жыл бұрын
I am very surprised how annoyed I get by there being no space at the end of PS1.
@duytdl
@duytdl 2 ай бұрын
"I'm not ready to commit yet" Um.. why. And how is that dangerous!? A simple [WIP] commit should suffice, you don't have to push immediately. I'm sure this feature is great for simultaneity, but ease of switching between branches is so not the use case I'd go for.
@plopplop.
@plopplop. 2 жыл бұрын
I'm annoyed by the `~` in your command line when you're not actually in your home directory.
How I use Git Worktrees in my developer workflow
15:37
Nick Nisi (nicknisi)
Рет қаралды 7 М.
Git Internals -  How Git Works - Fear Not The SHA!
31:23
GitLab
Рет қаралды 121 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН
Ful Video ☝🏻☝🏻☝🏻
1:01
Arkeolog
Рет қаралды 14 МЛН
Ozoda - Alamlar (Official Video 2023)
6:22
Ozoda Official
Рет қаралды 10 МЛН
Air Sigma Girl #sigma
0:32
Jin and Hattie
Рет қаралды 45 МЛН
How GIT works under the HOOD?
16:01
Tech With Nikola
Рет қаралды 212 М.
So You Think You Know Git - FOSDEM 2024
47:00
GitButler
Рет қаралды 1,3 МЛН
Git Worktrees and Neovim: A Match Made in Coding Heaven
9:53
DevOps Toolbox
Рет қаралды 33 М.
13 Advanced (but useful) Git Techniques and Shortcuts
8:07
Fireship
Рет қаралды 942 М.
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1,3 МЛН
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 42 М.
Everything You Need to Know about Git
23:16
ForrestKnight
Рет қаралды 39 М.
The Value of Source Code
17:46
Philomatics
Рет қаралды 219 М.
What is a bare Git repo and why you need them
5:55
Engineer Man
Рет қаралды 69 М.
Lazygit - The Best Way To Use Git On The Terminal & Neovim
11:47
Josean Martinez
Рет қаралды 82 М.
JISOO - ‘꽃(FLOWER)’ M/V
3:05
BLACKPINK
Рет қаралды 137 МЛН