Delete Remote Branch įrom Chapter 3 of Pro Git by Scott Chacon: Deleting Remote Branches Therefore, the version of Git you have installed will dictate whether you need to use the easier or harder syntax. Starting with Git v2.8.0, you can also use git push with the -d option as an alias for -delete. Which was added in Git v1.5.0 "to delete a remote branch or a tag." Which might be easier to remember than $ git push : You will receive an error if you try to delete the currently selected branch.Īs of Git v1.7.0, you can delete a remote branch using $ git push -delete.As of Git v2.3, git branch -d (delete) learned to honor the -f (force) flag.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |