Work on Multiple Git Branches at the Same Time
HTML-код
- Опубликовано: 21 авг 2024
- Is it possible to have different branches of the same project opened at once? - Yes it is!
In this video we are able to se how to work on another branch of the same project without committing or stashing the current branch we are working on.
The video is just an example of the possibilities, you could actually do what ever you want.
Thanks for watching the video.
If you enjoyed the video and it was helpful to you, please like, share, or subscribe to my channel to stay in the loop.
A link to an article covering the video topic with the mentioned commands here: blog.adnanhalilovic.com/2022/12/04/how-to-work-on-different-git-branches-at-the-same-time/
Three minutes in and I already got what I needed! Hvala Adnane! 😊
Could u do longer video with full angular project including authorisation and crud. I think that would be great video and it would boost ur channel. Ur teaching skills are lovely
Does `git worktree add ` base the new branch off the current branch?
Suppose one branch generates some files which are ignored by git -- and the other branch generates the same files, but w/ different content. When you switch branches, will the generated files be aligned to the branch that generated them?
e.g. say `gen.txt` was generated w/ content `foo` in branch `A` and then we switch to `B` branch and generate `gen.txt` w/ content `bar`. When we switch back to branch `A` what will the content of `gen.txt` be?
I'm working on branches w/ a lot of generated code and each time I switch branches I have to `git clean -xdf` and run the commands to regenerate the code, but would like a way to skip the `git clean -xdf` and code regeneration step when switching branches.
Thank you soo much for this
Great content
why are u talking in my left ear
yeah, the sound only played from the left speaker😄
Hey @siamax1,
Yes, that's true.
Unfortunately, before exporting the video, I forgot to mix the sound output to mono, and now it is what it is :)
But the videos after this one are getting better and better. I keep improving videos and learning on my mistakes as well.
Anyway, thanks for watching the video, and also commenting it :)
@@AdnanHalilovicDev its nice to know you are getting better at them, keep it up. also know that it is okay to make a silly mistake here and there it is quite funny after all. life without humor cant be life