13 hours ago, Josheir said:
14 hours ago, Bregma said:
If you go to https://github.com/settings/keys you might see that you've created an SSH key. You would need that key to make changes to your GitHub repos remotely. It's possible it was all set up behind the scenes for you by Team Explorer.
There is one key not used. I change things remotely so I assume this was set up behind the scenes?
14 hours ago, Bregma said:
If you go to https://github.com/settings/security you might see that you have a current OAuth token. That means you've obtained an OAuth token (ie. logged in) at some point from your current machine and it's being stored somewhere for use by things that use OAuth tokens, like maybe Team Explorer and certainly your browser.
I have two sessions and I have logged in from two computers so i am assuming whatever these tokens are, they are being handled by both of my computers : one for my browser and one for Team Explorer. Under recovery tokens there are none.
You can check to see what protocol you're using to push to GitHub. I don't know how your GUI tool would handle it, but from the command line "git remote -v" will tell you all you need to know on the topic. You can also examine the text file .git/config in your local working tree and check the "url" line in the "remote" stanza.
GitHub supports two protocols for a push operation: HTTPS (which will ask for a password each time) and SSH (which will use the public key you saw at https://github.com/settings/keys.
There may be one more possibility if you're not using the SSH key and you're not getting prompted for passwords: somehow an OAuth token has been set up and is in use by Team Explorer. Look at https://github.com/settings/developers and https://github.com/settings/tokens to see if there is anything there.
OAuth acts as a sort of persistent login. It's like having a key to your hotel room: you need to authenticate once to the hotel desk clerk by showing your passport and leaving your credit card imprint, they then hand you a key you can use to come and go as you please until your registration expires. WIth OAuth, you're prompted for your password once through your browser, and then every time you return to the web page, you (silently behind the scenes) show your token to prove you had the right credentials at some point. So, you were probably prompted for your password at some point in the past and have been using your OAuth token since then. It will expire at some point and you will have to use your password again.
Either way, unless you take extraordinary measures, no one can push to or delete your repositories at GitHub unless you have explicitly granted them permission to do so either by adding them as a team member or adding them as a collaborator.
No one can change or delete your local repos unless they have physical access to your machine (which is not specifically a git problem) or you have incorrectly set up a git server running on your machine. Note that it takes a lot of time and effort to set up a git server, it's not something you could accidentally do.