aids
aids

Reputation: 3

Checking out a different branch while a script is running?

I'm using git for version control of my project. I'm working on a feature on a new branch of my project that requires a very long test to be performed, like ~5 hours for the test to be completed. I've written a python script as part of this branch in order to test the feature.

Suppose that I want to work on a different feature, on a different branch, while this test is running. Is it safe for me to open up a new terminal window and checkout the other branch to work on the other feature while the test is running on this branch?

Upvotes: 0

Views: 1092

Answers (1)

LeGEC
LeGEC

Reputation: 52236

Have a look at git worktree : this command allows you to have two checkouts on your disk (in two different folders) from the same git repo.

Another solution is : setup a CI server, which can run such tasks on another station.

Upvotes: 1

Related Questions