Skip to content

Instantly share code, notes, and snippets.

@4383
Created September 12, 2017 15:13
Show Gist options
  • Save 4383/bd9b0ac96824bb10756d73ee194e96a9 to your computer and use it in GitHub Desktop.
Save 4383/bd9b0ac96824bb10756d73ee194e96a9 to your computer and use it in GitHub Desktop.
README updated with git flow branch changing
branch=$(git symbolic-ref HEAD 2>/dev/null | sed "s@refs/heads/@@")
sed -i "/\(build status\|documentation\)/{s@\(badges\|commits\|docs.ecocenter.fr/[^/]*\)/[^/]*\([^)]*)\)@\1/$branch\2@g}" $ROOTDIR/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment