Monday, 29 July 2013

Modifying your origin branch in git

Say you accidentally made a typo while creating your origin branch via 'git remote add'. In order to fix that, you can remote remove the origin branch with:

git remote rm origin

Be careful about doing this for branches where you've made any commits because you will lose those modifications.

No comments:

Post a Comment