Can I have different git branch in different ubuntu terminals or workspaces?

0

Issue

I use Ubuntu with workspaces enabled. While my code compiles in a branch, I would like to do some work on another branch. But branch changes go seem to be global across terminals and workspaces.

Is it possible to set a different git branch for one terminal or workspace without affecting the other?

Solution

Not in the same copy of the repository. The way git works, the current state is a function of things stored in a .git folder at the top level of your repository. It doesn’t have anything to do with any individual application using git. However, you can accomplish something pretty close as described in this answer.

Answered By – BlueSpaceCanary

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More