Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
git config --add remote.upstream.fetch +refs/pull/*/head:refs/remotes/upstream/pr/*
 
# to fetch *all* the pull requests, type this
git fetch upstream
 
# and to check out a PR, type thisspecific PR into a local branch (named whatever you want)
git checkout pr/248 -b [local-branch-to-create]
 
# it's probably a good idea to makeFor example, this checks out PR #248 into a newlocal branch. You whilecan you'rename checkingit outwhatever ayou PRwant,
# sobut doin this example it this wayis using this format:
# [JIRA-ticket-number]-[PR-number]-[description]
git checkout pr/248 -b "DS-1597-PR-248-test-for-oracle-compatibility"
 
# that is a suggested branch naming practice: start with the Jira issue number, follow with the PR number, and then finish with a brief description of what you're doing.

Additional Handy Git Commands

...