简体   繁体   中英

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

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?

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM