0

I can execute "git checkout -B --track origin/TeamBranch" through terminal. but I have the requirement to implement the above command through my script using Gitpython. can someone help me with this?

Thanks in advance.

1 Answer 1

0

You can use git directly

git = repo.git
git.checkout('HEAD', b="TeamBranch")

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.