Skip to content

Instantly share code, notes, and snippets.

@ddavison
Last active August 29, 2015 14:17
Show Gist options
  • Select an option

  • Save ddavison/0d56af80bc57ef1425d5 to your computer and use it in GitHub Desktop.

Select an option

Save ddavison/0d56af80bc57ef1425d5 to your computer and use it in GitHub Desktop.
Git Commit Signoff
[remote "origin"]
url = <repo>
fetch = +refs/heads/*:refs/remotes/origin/*
fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
@ddavison
Copy link
Copy Markdown
Author

git checkout master
git merge origin/pr/X && git commit --amend --signoff

@ddavison
Copy link
Copy Markdown
Author

git checkout master
git cherry-pick <commit hash>
git commit --amend --signoff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment