-
-
Notifications
You must be signed in to change notification settings - Fork 933
remove a remote branch (push origin ':' ) #609
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Sorry for the late reply. |
In the same vein, is there a way to delete a remote tag? Unfortunately I couldn't find the answer in the part of the docs that @Byron mentioned. The only way I've found is something along the lines of tag = repo.create_tag("mytag")
repo.remotes.origin.push(":" + tag.path) which seems kind of hacky/flimsy. |
@adnelson I don't think it's hacky as the documentation specified providing additional strings as arguments to |
I was looking for a code example and never found a straight forward one. This is the top results in google when I search for this so I will post my solution here: How do delete a remote branch:
|
Hi
I cannot find a way to perform a commend equivalent to:
git push origin :branchName
A command that delete a remote branch, can gitpython perform this using git push?
Thanks
The text was updated successfully, but these errors were encountered: