-
I have not able to find an equivalent of I guess the delete method might be used for this aim but could not manage to succeed it. https://github.com/gitpython-developers/GitPython/blob/main/git/refs/head.py#L139 Could you clarify this? |
Beta Was this translation helpful? Give feedback.
Answered by
Byron
Jul 1, 2022
Replies: 1 comment 1 reply
-
For special cases it should be easiest to run |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Byron
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For special cases it should be easiest to run
repo.git.update_ref(d='HEAD')
. You can read more on how to use git directory in the docs.