Creating remote GIT branch

You can create a new local branch like this:
git checkout -b <branch_name>

If you want to make it a remote branch, then it can be pushed to remote like this (make sure that you're in this new branch):
git push origin <branch_name>

But sometimes, this newly pushed branch to remote doesn't get updated on remote location. Remote branches could be forced refreshed like this:
git remote update origin --prune 
If you want to delete a local branch:
git branch -d <branch_name>
If you want to delete this branch in remote too, then:
git push origin :<branch_name> 
 

No comments:

Post a Comment

Scheduling Repeating Local Notifications using Alarm Manager

Learn about Scheduling Repeating Local Notifications using Alarm Manager in this post .