Push a new local branch to a remote Git repository and track it too

1. To create a new local branch use following command,

$ git checkout -b feature_branch_name

2. Make changes to files you want and add+commit them, then fire following command to push local branch to repository,

$ git push -u origin feature_branch_name





Comments

Popular posts from this blog

How to get context path in JQuery?

How to extend Liferay 6.2 session timeout by AJAX call?

How to clear cache programmatically in JSP?