I've moved my repositories from Github (where they were created) to Bitbucket and have been working happy for a while. Every now and then Source Tree asks for my Github password.
My Local Repositories pages doesn't have any repos that are on Github.
My Remote Repositories doesn't have any repos on it.
My Tools>Options>Authentications page doesn't have any Github accounts.
Are there other places I need to remove my Github account from?
What might be causing this?
Why is it asking?
I had the same issue- I migrated a repository from GitHub to Bitbucket, and then removed the account from Tools>Options>Authentication. I then started getting a periodic prompt for my GitHub account.
I still had the GitHub repo bookmarked in SourceTree, and once I removed the bookmark the prompts stopped.
Are you running windows? If so you might want to uninstall your git-credential-manager and check to see if your windows credential manager has an entry for github. If so delete that too.
Related
Background:
I have two GitHub accounts: a main account and a rarely-used account.
If I remember correctly, I have used both of them with the copy of Sourcetree on my laptop.
I currently have just my main GitHub account listed in my Sourcetree's Tools-->Options-->Authentication settings page.
Problem:
When I try to push a branch from my laptop to my GitHub remote for my main account, it fails, with the git error message indicating that I had actually tried to push with my rarely-used account, even though it's nowhere to be found in my Sourcetree settings pages.
The Atlassian team provided a solution for this (here):
Open the repo
Click "Settings"
Double click on the "origin" item in the listing
Edit the url to add your username before the URL of the repo. Here are some examples:
https://USERNAME#contoso.com/repo/blah.git
https://USERNAME#github.com/host/repo_name
You should be prompted for a password the next time you try to push or pull
I was able to solve the problem by opening up my Sourcetree userhosts file, located at (on Windows 10): C:\Users\<USERNAME>\AppData\Local\Atlassian\SourceTree\userhosts, as hinted at in Atlassian's documentation for how to reset your Sourctree settings.
The file only contained these lines:
github.com
<my-rarely-used-account>#gmail.com
I deleted that second line which referenced my rarely-used account, restarted Sourcetree, tried to push again, and this time it prompted me for my GitHub password, and I could see that the username was (correctly) my main GitHub username. I entered my password and the push succeeded.
I have installed GitHub Desktop as the uploaded local project tool, I uploaded a project "F:/test", and it could show successful in my GitHub homepage, then I delete this repository.
But I re-publish this project to GitHub.
Github Desktop shows this history of the repository, and prompt error
The repository does not seem to exist anymore.
You may not have [enter access, or it may have been deleted or renamed
How can I get past this error message?
This error was keeps on occurring to me. Turn out I was not added as the Contributor on the GitHub project.
The repo owner should be able to see and list of Contributor for the project. You can request him to add you in contributor list and this error will disappear.
I was facing the same issue, I simply sign out from Github Desktop app in File > options > Signout
In my case I accidentally changed the push Url, so I executed:
git remote set-url --push origin https://github.com/username/repo.git
After that I checked with:
git remote show origin
your Fetch Url and Push Url must look like the same URL where you cloned the project.
As shown in this error, it is the result of an invalid local path. Either because it includes invalid characters, or because you don't have write/admin access to it (read access is not enough).
If you can, clone again that repo in a different path and open it with GitHub Desktop, and see if the issue persists.
I had the same issue. I deleted my repository from remote as well and then recreated.
If you aren't worried about the change trace being lost, then you can simply remove the .git folder (you will need to enable hidden files in windows) and then re-initialize the repository in the project folder.
This resolved the problem for me!
In my case I have used more than one account. Just sign out from GitHub Desktop and sign in back to the specific account. You might sign out any logged GitHub session on the default web browser if the account is not what you want.
Since I had a forked repository, I had spelled my url wrong in
github desktop -> repository -> repository settings...
I had a link called github.com/myname/myproject.it
but instead of it I hade to write git.
github.com/myname/myproject.git
I was logged in with the wrong account! I had to sign out of Github in the browser first, then sign out in Github Desktop and re-sign in
I am trying to use a team services account to store other related documents for a project such as some spreadsheets. I want the client to have access to it, but they are not programmers so I am not wanting them to use VS.
The client can access it directly without a problem and can download files, the biggest issue is they will need to be able to upload files as well. Without using a client of some sort they are limited to 10mb or less which won't work for them.
I cannot seem to get github for the desktop to access my online repository unless I first go into VS and clone it.
I am trying to avoid having to walk the client through doing that and would like to be able to use a GUI like github desktop from end to end.
We are all in a Windows environment.
I can create a new repository in github desktop, but cannot seem to figure out how to connect it to my remote (I can't find the URL for the remote anywhere).
I feel I am so close but just missing a couple items, any push would be appreciated.
GitHub Desktop is for GitHub. GitHub is a Git repository hosting service. Not surprisingly, the GitHub tool only works with GitHub.
You can use any general-purpose Git client to interact with VSTS Git repos. SourceTree is good.
You can use some git GUI or git command line to operate local repo.
Git GUI: as Daniel Mann said, you can use soucetree, or tortoiseGit etc.
Git command line:
you can download git here ->
git clone https://account.visualstudio.com/_git/projectname ->
enter email and password to clone ->
git add . (when you add some files) ->
git commit -am 'message'(commit the changes you make) ->
git push(push your commits into VSTS git repo) ->
git pull(pull VSTS git repo changes to localt).
I am just closing this out, thank you to both folks who did answer. I understand that I am using GIT and that GitHub Desktop is for Github. I was looking for the best way to work with a Github repository without using VS and how to access the team services repo for a client of mine. I set him up with Gitkraken which is working. I was never able to figure out how to get Github Desktop to properly clone and push items, but I did not spend a ton of time in it once I used Gitkraken.
Thanks again for taking a swing at it.
I accepted the answer I did because suggesting using the command line at least shows a understanding of my question and what I was looking for.
I know I am late to the game but I can confirm that tortoise git and getext also work fine with VSTS
We are having an issue with syncing on Github Desktop.
We have a team of 4 members and a company setup in Github.
One of our members can sync the repos he has already worked on before but when I create a new repo for our company, so all members can access it, I can sync but one of the members who is working on the project keeps getting an error
https://github.com/companyname/reponame.git/ doesn't seem to exist any more.
You may not have access, or it may have been deleted or renamed
I have tried to research this but not been able to get any direction, where to go?
Thank you everyone for posting and helping.
I have found the solution and it's a big oversight on my part.. Remember when you create a Repo with team member access, you MUST give then access to WRITE as Git sets default to READ only. When syncing, git desktop does not make it clear that its a permissions issue..
Here is where the READ/WRITE permissions are located on the Github site once you are logged in.
Thank you all.
Double-check that:
the right account for that user has been added as a collaborator for your repo (or your GitHub organisation).
said user is not using a credential helper which would have cached another GitHub account
git config credential.helper
A couple months back I deleted a repo from github using "danger zone -> delete this repo" from the project control panel on github.com.
Now I would like to put the code back up on github. I am using the github desktop application to push my code to github.
In the github desktop application, github still thinks the old deleted repo is alive on my account ... so I can't push the code a second time.
How can I completely remove the project from github so that I can push my code again?
I have done this by removing the [remote "origin"] section from the .git/config file for the project and republishing the repository to github.
If a refresh isn't enough for "GitHub for Windows" to correctly list your GitHub repos, the extreme solution would be to "un-install" and re-install that application.
All the data are under C:\Users\YourAccount\Local Settings\Application Data\GitHub, so removing them and re-installing "GitHub for Windows" should be enough.
I had to log out from the application and log back in and finally the repository was gone.