Create git branch and delete branch.
Create the branch on your local machine and switch in this branch :
$ git checkout -b [name_of_your_new_branch]
Push the branch on github :
$ git push origin [name_of_your_new_branch]
switch to new branch or master
$ git checkout [branch name]
Delete a branch on your local filesystem :
$ git branch -d [name_of_your_new_branch]
delete branch from server
$ git push origin :[name_of_your_new_branch]
Enjoy!!!
Comments
Post a Comment