Work on Multiple Git Branches at the Same Time

preview_player
Показать описание
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.
Рекомендации по теме
Комментарии
Автор

Three minutes in and I already got what I needed! Hvala Adnane! 😊

oliverp
Автор

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 <3

edie
Автор

Does `git worktree add <branch_name>` 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.

joseville