You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
Hi There,
I have a simple but bugging problem: I fisrt tried to push files into a Git repository from my SourceTree, but mistyped my Username. Now SourceTree won't allow me to change the incorrect Username when I try to push my work into my Git repository, and so the files will not push.
Thanks in advance!
Did you try the "Authentication" tab under Tools>Options, you can modify information of saved users there.
Thanks
Harry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good approach. The only thing is it doesn't let you save the password there in-place. You have to wait for the login prompt to appear.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Either this is the answer for Windows or it's for older SourceTree versions. On Mac, I had to go to SourceTree | Preferences and select the Network tab.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
is there a way to manually add another user to SourceTree? I have many different users for GitHub and I need to be able to chose which user to use for a repo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Doesn't work for me. I've so far found no way to restore my correct username. Under Tools->Options->Authentication, both the Saved Passwords and Default User Names are empty - all deleted. I updated the global user.name but it is nowhere to be seen. When I try to Pull the current branch, I get the Authenticate dialog with username "git" which cannot be altered, along with a password entry box.
BTW, the command line works fine. "git fetch origin" and "git pull" complete without error.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
1. Under the Source Tree menu, select menu item 'Preferences'
2. Select 'Network' tab
3. Select the hostname you wish to edit
4. Click the 'Edit' button and change the incorrect username.
5. Done!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me, I was very annoyed and always getting an "Authentication problem bla bla bla..." and didn't notice that the user was wrong.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
macOS Sierra:
sourcetree 2.6.3
mainmenu
- sourcetree
- preferences
- advanced (far right)
then remove (you can't edit passwords) the account where the credentials has changed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In Options -> Authentication, there is a second set of usernames as "default user names". The misspelled one is there. Select and delete it, then the next time you push/clone/etc, you will be reprompted for the username again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
git config --global user.name "NewUserName"
git config --global user.email "mynew@mail.com"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Harry,
Thanks for your answer - I changed my username in global settings as you suggested (from my SourceTree terminal), and I checked using
git config --list
that it did indeed change. I restarted both SourceTree and my computer.
However, when I drive the "push" command, and SourceTree asks me for authentication, I am stuck with the old username, and my work still won't push :S
I also tried changing username "locally" with
git config user.name "NewUserName"
with the same result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I actually had the settings correct, but what fixed the issue for me on Windows 10 was closing out the tab for the project in Sourcetree and then simply opening it again via the "+" button. Once I did that, the account that was associated with the commits (indicated above the text area for commit message) was shows the correct account (which was already set as my default)
YMMV, but it might be fixed to the account until you close that tab out and reopen it.
Version: 3.2.6 on Windows 10
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
On mac -> click sourcetree-> preferences -> advanced -> edit or remove your username.
This is on version 2.6.3
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm guessing that many/all of these suggestions (aside from the command line ones) are for the Windows client. E.g., I don't see menu options such as "Tools" with the Mac client.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Go to Tools > Options, choose Authentication tab, enter password in password field to reset.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.