Skip to content

Instantly share code, notes, and snippets.

@wkei
Last active January 25, 2019 03:58
Show Gist options
  • Save wkei/91c3ade27138ced69e0db56b66ab8d61 to your computer and use it in GitHub Desktop.
Save wkei/91c3ade27138ced69e0db56b66ab8d61 to your computer and use it in GitHub Desktop.
GIT

fetch a branch on someone else's fork

$ git remote add theirusername [email protected]:theirusername/reponame.git
$ git fetch theirusername
$ git checkout -b mynamefortheirbranch theirusername/theirbranch

change author name/email

git commit --amend --author="xxx <xxx@xxx>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment