nbdev icon indicating copy to clipboard operation
nbdev copied to clipboard

Error using password on git push

Open stevecrossan opened this issue 2 years ago • 2 comments

In this section:

git add . git commit -m'Initial commit' git push

The first time git asks you for the user password but git has stopped accepting passwords on the command line. You have to set up a personal access token.

stevecrossan avatar Feb 10 '23 09:02 stevecrossan

@stevecrossan if you clone your repo with SSH, you won't need to use personal access tokens.

deven367 avatar Feb 11 '23 16:02 deven367

@stevecrossan if you clone your repo with SSH, you won't need to use personal access tokens.

Instead of a fresh clone @stevecrossan you can just remove the default remote by default origin and add a new one

You can see the current remote config by:

git remote -v

I can't see the harm in removing it and adding the following.

git remote remove origin
git remote add origin [email protected]:fastai/nbdev.git

You will need to set up the ssh keys. Try the github ssh key docs.

If that doesn't make sense to you a few years ago I found the gitlab docs a bit more friendly so they are worth a read.

gaslitbytech avatar Feb 12 '23 09:02 gaslitbytech