To set git username and password, use the following commands. $git config --global user.name "Your Name" |
Issue: While trying to do a repository initialization, the user will be prompted for a password. Example console log: Password for 'https://code.rdkcentral.com': remote: Unauthorized fatal: Authentication failed for 'https://<username>@code.rdkcentral.com/r/manifests/' Possible reasons and solutions:
Update the credentials in $HOME/.netrc file, a sample of the file is given below .netrc machine code.rdkcentral.com login <user-name> password <Password> |
Issue: In few incidents, the user may not be having the required permission to download the code although having a valid combination of username/password combination. Example console log: Username for 'https://code.rdkcentral.com': rdknewuser Password for 'https://rdknewuser@code.rdkcentral.com': fatal: remote error: Service not enabled fatal: cannot obtain manifest https://code.rdkcentral.com/r/manifests Approach RDK support with the necessary approval to get the requested privilege. |
Github no more supports direct password login and allows only Personal Access tokens. To generate a new token,
Eg: machine github.com login sampleuser password ghp_73ozr1OhWvUI1htuRCVwPyWF4Va1234ABCD |
GitHub Workflow Steps:
|
Possible reasons and solutions: If you are already using the Personal Access Token and getting a 403, chances are that the token has auto-expired. You can generate a new token in Github by going to "https://github.com -> Settings -> Developer Settings -> Personal Access Tokens", Clicking on "Generate a new token" and then replacing your old token inside the ~/.netrc file with the newly generated one. |