eyalgo
5/4/2014 - 3:16 PM

git-commands.sh

# create a new branch out of current branch
git checkout -b <NEW_FEATURE_BRANCH_NAME>

# share the branch
git push -u origin <BRANCH_NAME>

# show all branches
git remote show origin

# Delete remotely
git push origin :<BRANCH_NAME>

# After removing remotely (in GitHub)
 
#verify which branches will be pruned
git remote prune origin --dry-run
 
# actual removing
git remote prune origin
 
# then delete locally
git branch -d <branch name>