I am new to Github, and I used the Windows github tool , which turned out to be great help and handle a lot of things, such as SSH keys, tips complete, discard commit, return commit and have a combined pull + merge and push (sync) mechanism and a lot!
I study it and try to execute its internal git command-level execution. The other day I merged a patch branch and then I wanted to delete it -
git branch -d hotfix
I need to know how to remove it from the server. What are the git equivalents of the following two actions available in the control branch in a Windows tool -
- Unpublish branch - delete only from server
- Delete branch - delete locally and on the server
Another thing that I doubt is that the git command above could not delete the branch locally. I executed it, it deleted the branch (did not appear in the $ git branch ), but if I restart the tool, the branch was still there! Was it a glitch?
If someone used them, can you suggest a better approach (I don’t want to depend completely on the tool, I also want to learn git).
source
share