Skip to content

Instantly share code, notes, and snippets.

@TamerShlash
Created December 12, 2017 09:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TamerShlash/5638d14190f2bf446d6cb6cf15ce86bc to your computer and use it in GitHub Desktop.
Save TamerShlash/5638d14190f2bf446d6cb6cf15ce86bc to your computer and use it in GitHub Desktop.
Delete all Merge Requests references.
git for-each-ref refs/merge-requests/*/head --format='%(refname)' | \
while read ref
do
git update-ref -d $ref
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment