Skip to content

Instantly share code, notes, and snippets.

@apk
Created April 16, 2010 19:14
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 apk/368814 to your computer and use it in GitHub Desktop.
Save apk/368814 to your computer and use it in GitHub Desktop.
Helper to transfer back from git to cvs
# Commit diffs from cvs..master into cvs, one at a time.
# No file additions/removals.
set -x
git log --format=oneline cvs..master | tail -1 | (read commit comment
echo "[commit:'$comment']"
git merge $commit || exit
cvs -q commit -m "$comment" || exit
cvs -q update -kk
git update-index -q --refresh
git status)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment