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 find the companyId in Liferay.

How to add portlet in liferay theme.

How to create soap client for ofbiz service or ofbiz service invocation from another application.