Versions Compared

Key

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

...

Code Block
languagebash
themeRDark
# create a bin directory
mkdir ~/bin
export PATH=~/bin:$PATH

# Download the repo tool and ensure that it is executable
curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
chmod a+x ~/bin/repo


Configure Credentials

it is recommended to put credentials in .netrc

Code Block
languagebash
themeRDark
# RDK Central Github
machine github.com
    login <Public GitHub userID>
    password <PAT>

# RDK Central Gerrit
machine code.rdkcentral.com
    login <rdkcentral sso email address>
    password <PAT> 


Set your Gerrit PAT here:  https://code.rdkcentral.com/r/settings/#HTTPCredentials

For GitHub to create a PAT navigate to Settings - Developer Settings - Personal access tokens - Tokens (classic)

Note: for git actions (clone/push/pr) you need to select at least the following scopes:

repo write:packages

Image Added