Skip to content

Instantly share code, notes, and snippets.

@fchevitarese
Forked from hasantayyar/git-dropbox-fix.sh
Created January 9, 2016 09:31
Show Gist options
  • Save fchevitarese/61d752d6171265d428da to your computer and use it in GitHub Desktop.
Save fchevitarese/61d752d6171265d428da to your computer and use it in GitHub Desktop.
Solution if you are using dropbox and git same time and if you get this error "fatal: Reference has invalid format: refs/heads/master conflicted copy"
find . -type f -name "* conflicted copy*" -exec rm -f {} \;
awk '!/conflicted/' .git/packed-refs > temp && mv temp .git/packed-refs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment