Skip to content

Commit

Permalink
Add branch for resetting local branch to remote
Browse files Browse the repository at this point in the history
  • Loading branch information
draperunner committed Jan 30, 2020
1 parent cc3763c commit 0b56158
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions git-pretty.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ async function main() {
'My Git history is ugly',
'I have a bunch of old branches I want gone',
'I want to sync my fork with the original repo',
'I want my branch to be exactly like on GitHub!',
])

if (answer === '1') {
Expand Down Expand Up @@ -268,6 +269,15 @@ async function main() {
return '53'
}
}

if (answer === '6') {
console.log('Here is what you need. if master is not your desired branch, replace it in the code below with the desired branch name.')
console.log('Make sure you don\t have any local changes you want to keep!')
dangerZone()
printCode('git fetch')
printCode('git reset --hard origin/master')
return '6'
}
}

main()

0 comments on commit 0b56158

Please sign in to comment.