I have a fresh project on SVN from SourceForge, I can checkout and update, but when I try to commit I get this error :
How can I get this to work ? My friend is on Linux and was able to commit/update/checkout just fine.
It works now, I just deleted my authentication data and it prompted me for my credentials and it worked.
I was probably already logged in with another username.
Related
I am using Mac OS as my main operating system. I installed fedora 37 server edition in a VMware workstation as part of my course in college. I am trying to customize my prompt using this repo https://github.com/andresgongora/synth-shell.
I have installed git already. I also have power line-fonts installed. The issue I am having comes with this command: git clone --recursive https://github.com/andresgongora/synth-shell.git
When typed and executed I get a prompt asking me for a GitHub username and password. I enter my credentials and I get an error stating "Authentication Failed for https://github.com/andresgongora/synth-shell.git" even though my credentials are correct.
I have tried putting my username and password (both combinations separately) and I get an event error. I configured a global username and that doesn't work either.
Am I supposed to log in to my GitHub before cloning this repo? Does anyone else experience this or have a workaround?
I have tried putting my username and password (both combinations separately) and I get an event error. I configured a global git username and that doesn't work either.
Sites used:
Can't clone a github repo on Linux via HTTPS
https://docs.github.com/en/get-started/getting-started-with-git/setting-your-username-in-git
https://documentation.red-gate.com/soco/troubleshooting/authentication-failed-when-cloning-from-github
Edit: I have also tried setting up a token to log in with. The only issue I am having is my linux distro does not support copy and paste so I am having to type everything out. When the password prompt comes up everything is blank to hide your password so I can't even check for spelling errors.
As of mid 2021, github the company is now enforcing git HTTPS authentication to use an access token rather than username+password. See this stackoverflow answer for full information.
One way forward is to generate an SSH key, and upload the public portion to github.
It warrants mentioning that this change is specific to Github Inc., the Microsoft subsidiary. There have not been any changes to git, the distributed version control system. Other, similar repository hosting services may not necessarily bar you from authenticating via username+password. Gitlab is one example.
I managed to fix my issue by using cockpit in my web browser. Doing this allowed my to copy and paste my information and everything worked first try.
Beginner problem.
I am working on a project of mine and I got the codes uploaded in github. I started working in this project from Win10 os and currently I'm working in Arch linux. In windows it didn't use to ask me for any password but it does now.
I've never pushed from my linux before. Today when I tried to push the terminal and VB code both are asking for my github username and password.
I kept a backup of this project at my usb hard drive and currently I pasted it in my linux ssd. What I'm saying is I didn't clone it from the repo. As far as my global username & user email are concerned both are accurate. I'm not using any SSH so when I type git remote -v in my terminal it shows https link as the origin for both fetch and push.
Why is it asking for my username and password? Is it secure to provide my password? In case if I provide my credentials then do I have to provide it every time I push? How to fix this?
I have searched stackoverflow for solution but the other questions that I have found doesn't match my criteria cause in windows it was working fine without asking any credentials.
So, I have updated my origin remote from https to ssh and added a ssh public key to my github account after creating one which is well defined by github finally my problem solved and now I can push to my repo without any credential prompt by the terminal. Thank you Code-Apprentice.
While in general, providing a username and password to git is secure, GitHub no longer allows authentication with username and password. Instead, you need to either use ssh or generate a personal access token.
See source for details.
Why people are editing my posts I don't understand. I'm trying to post a solution of the problem that I have faced previously. Then why people are editing my posts? I just want to put a proper solution for the future so that people get benefited from this. However, the solution of the problem is you have to do ssh push then it won't prompt for username & password anymore. That's all. Now please do not edit my post. I am not even sure how you are allowed to do that!
This might be flagged as a duplicate, I've tried all the fixes in the similar questions that popped up on the search, but none worked.
Basically, I was using my company's GitLab account to do my pushing, but decided to switch to my personal account for some reasons. Except I can't find a way to do that.
The ~/.git-credentials file doesn't exist, when I try to open it nano just gives me a new file. The ~/.git-config file already contains my personal account's email and username (but no password), and my commits on the repository page on GitLab are attributed to my personal account. However, Git never asked for the password (so I doubt it's actually logged in). Also, the contributions aren't showing up on my personal Overview page (the little colorful calendar thingy), instead they are showing up on the previous account's Overview page.
I also tried these two (separately):
git config --global --unset credential.helper
git credential-cache exit
No changes whatsoever. Still letting me push without asking for credentials, and commits still showing up on the wrong account's Overview.
I checked out the git-credential-store documentation as well (as suggested in a similar question), and for whatever it's worth, $XDG_CONFIG_HOME is empty and $HOME/.config/git/ doesn't exist either.
Someone else suggested going to Access Tokens on the GitLab website and deleting the corresponding token there, but it says "This user has no active access tokens."
I even tried ye olde uninstalling and reinstalling Git and it changed absolutely nothing.
I'm at my wits' end. Any idea where these darned credentials might be stored, or a way to force logout?
EDIT: A coworker partially fixed it for me. I had both accounts authenticated via SSH, and GitLab was only using the one I connected first, which was the corporate account.
I deleted both SSH keys, generated a new pair and this time authenticated only my personal account. It's working now. I wanted a way that I could switch between accounts (I have to use both) without having to re-authenticate via SSH every time, and if anyone still has an idea, I'm open to it.
The repos are cloned via SSH. Which is strange, because even then, the first time I pushed, it asked me for username and password. Only that time and then never again.
That looks like HTTPS URLs though. Check that with a git remote -v inside the repository.
Any credential helper setting that you would manipulate would only influence HTTPS URLS.
It is is SSH, then you would need to change those URLS to use an ~/.ssh/config entry
Host <HostEntry>
Hostname xxxx.xx.xx
User ubuntu
IdentityFile ~/.ssh/my_second_key.pem
With the new URL being:
ssh <HostEntry>
I am using gitkraken on linux and it is excellent application. When I authenticate with bibucket, app will connect.
But when I try to make push, app will display error in top panel:
Your oAuth token for 'Bitbucket' is invalid. Would you like to refresh
your oAuth credentials or try again without oAuth?
When I will select "Refresh Token" option I have to reconnect to bitbucket with the same result
"Retry without oAuth" option not connect (without error message), althought on bitbucket.org same login/pass work.
Originly I used another bitbucket account and that works, but with new one I cannot manage it.
Do someone has similar experience? Did you solve it?
I managed to solve it by deleting the remote and adding it again.
I tried a couple of things and it worked for me:
close git graken
opened powershell / cmd and navigate to the repo
git pull
open git kraken
go into the preferences (the little burger on the top right)
integrations, re-enter the token from gitlab or whichever tool you might be using
Alternately, I also tried closing the repo in git kraken and opening it from the main page also. it works for me now.
I had the same problem and I deleted and recloned my repo and it worked.
I used "GitHub Desktop". It showed the conflicts and once i fix them, i run GitKraken and the top panel asking for "oauth" disappeared.
Can't connect to bitbucket.org from SourceTree. Keeps asking for password. Worked fine yesterday with the same project. Works from git command line
It's an issue with the newest version 1.6.24 downgrade to 1.6.23 to fix this
here is a link: http://downloads.atlassian.com/software/sourcetree/windows/SourceTreeSetup_1.6.23.exe
link to thread detailing issues:
https://answers.atlassian.com/questions/164023/password-not-working-on-sourcetree
I had a similar thing after an update; I tried re-adding my bitbucket credentials, changing the protocols, etc. with no luck, until...
I opened my keychain and searched for bitbucket under the Passwords category.
I found that I had multiple Access Keys for my user, so I closed my repository, deleted all the keys of "application password" Kind, opened the SourceTree preferences > Accounts > removed my account and re-added it (login as usual - I used Basic with HTTPS).
Keychain asks for permission to save the password, which I said yes and now I only see one key of the kind "application password".
I opened my repository from the repo browser and hey presto, no more password popups!
This bugged me for a whole week! If this helped you, you can do a little dance with me now :)