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

Popular posts from this blog

How to run ofbiz as ubuntu Service.

JPA vs Spring JPA vs Spring Data JPA vs Hibernate

Java Array Interview Questions for Entry-Level Developers Part 01