Skip to content

Commit

Permalink
load_branches_from_remote.sh: do a forced checkout instead of resetting
Browse files Browse the repository at this point in the history
- better handles orphan commit
  • Loading branch information
PetrHeinz committed Feb 12, 2018
1 parent da9d89b commit e38d0d7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions load_branches_from_remote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ for REMOTE_BRANCH in $(git branch -r|grep $REMOTE/); do
git branch -q $BRANCH $REMOTE_BRANCH
git branch --unset-upstream $BRANCH
done
git reset --h
git checkout master
git checkout -f master

0 comments on commit e38d0d7

Please sign in to comment.