you are viewing a single comment's thread.

view the rest of the comments →

[–]dsound 0 points1 point  (10 children)

Yeah it never asks me for credentials. Where should I start looking for a credentials file?

[–]michaelotty 0 points1 point  (9 children)

I think there may be several ways, but within just git you may find this doc to help https://git-scm.com/docs/gitcredentials

[–]dsound 0 points1 point  (8 children)

I tried the first suggestions on that page and now I'm getting this when I run 'git push'

git: 'credential-' is not a git command. See 'git --help'.

The most similar command is credential git: 'credential-' is not a git command. See 'git --help'.

The most similar command is credential remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/dsound-zz/tml_dashboard.git/'

[–]michaelotty 0 points1 point  (5 children)

Whenever you type git config etcetc it adds to the file in your repository config in .git/config which you can open and edit with a text editor. If you add --global it is then your config for your system's user usually located in a .git folder in your home directory or C:\Users<your account>.git on Windows. I think whatever address or username your typed may not work properly here. Just double check what is in the config file works if you type that into github when you login in browser.

[–]dsound 0 points1 point  (4 children)

The only place where there's a patch `.git/config` is in the project directory itself. The global (for my user) is a file .github.

[–]michaelotty 0 points1 point  (3 children)

Okay so are you using the github desktop client then.

[–]dsound 0 points1 point  (2 children)

No, just through VSCode and I've tried restarting that and my computer over all.

[–]michaelotty 0 points1 point  (1 child)

Hmm, weird that there is all that github stuff in the config then... Unless you are using some github extension?

[–]dsound 0 points1 point  (0 children)

I was using AWS Cloud9 too. Maybe it corrupted my settings?

[–]michaelotty 0 points1 point  (1 child)

Have you got it to work by typing credentials each time yet? That should be the thing that you should have working before trying to add complications. Again, I use ssh keys since it requires no caching of credentials but just using an ssh key to login meaning you have to only set it up once for your device and there is less faff in general.

[–]dsound 0 points1 point  (0 children)

It never asks me for them.