Recent Posts
- (09/10) Fixing Warning: the ECDSA host key for 'github.com' differs from the key for the IP addressTAGS:Web Server Admin
- (12/26) CakePHP 3 - Getting List of Column Definitions from a Table (like schema())TAGS:CakephpCake3
- (09/14) Change Order of Loaded Behaviors in CakePHP 3TAGS:Cake3CakephpWeb ProgrammingPhp
- (05/29) CakePHP 3 - Accept JSON Header Only Working When Debug FalseTAGS:Web ProgrammingCakephpCake3
- (05/23) Remove All Events from Google Calendar (Reset Calendar)TAGS:Web ProgrammingPhp
- (11/08) Google Tag Manager (GTM) Not Firing Default PageView EventTAGS:Web ProgrammingJavascriptGoogle Tag Manager
- (10/13) In PHP, how do you get __toString() Magic Method Result without calling echo?TAGS:CakephpCake3Cakephp 13PhpWeb Programming
- (11/14) Getting output from shell_exec() at all timesTAGS:Web ProgrammingWeb Server Admin
Subscribe to my feed
MainelyDesign.com Blog
Weird Git Error After Upgrade: Repository not found. Make sure you include the .git
Posted on 02/02/2010 at 08:18 am by Kevin Wentworth
Viewed 16,138 times | 0 comments
This isn't a weird error in that I've never seen it (ususally when I forget to load up Pagaent before attempting Github push/pulls). It's weird because everything was working perfectly and then I couldn't do anything from remote! I upgraded msysgit recently and hadn't tried to do any remote commands until yesterday. And I kept getting the following error in Git Gui:
ERROR: site:support.github.com Repository not found. Make sure you include the .git, e.g. git@github.com:defunkt/ambition.git fatal: The remote end hung up unexpectedly
I found a posting on the github support forum that finally clued me in on where I could see what "address" was tied to the named remote in Git Gui. Until this point I couldn't even see what the "origin" remote address was! If you go into the Git repository folder you'll see a folder named .git. In that folder is a file named config. That's where you can see what remote addresses are tied to each remote shortcut for that Git repository.
My issue was in my .git/config file
Looking at my .git/config file I noticed that there was actually a '\n' in the config file at the end of my remote url config block. I figured that might be the problem, so I removed it and reloaded Git Gui. It worked! Somewhere in my upgrade a windows style line ending must have been turned into an escaped character instead of an actual new line.
My .git/config file before and after:
- [core]
- repositoryformatversion = 0
- filemode = false
- bare = false
- logallrefupdates = true
- symlinks = false
- ignorecase = true
- [gui]
- geometry = 1016x572
- [remote "origin"]
- url = git@github.com:kwentworth/repo.git\n
- fetch = +refs/heads/*:refs/remotes/origin/*
And, after (no line ending after url=):
- [core]
- repositoryformatversion = 0
- filemode = false
- bare = false
- logallrefupdates = true
- symlinks = false
- ignorecase = true
- [gui]
- geometry = 1016x572
- [remote "origin"]
- url = git@github.com:kwentworth/repo.git
- fetch = +refs/heads/*:refs/remotes/origin/*
Cheers,
-Kevin Wentworth
Tags for Weird Git Error After Upgrade: Repository not found. Make sure you include the .git
Git | Usage | Windows | Errors
Comments for this Posting
No comments. Be the first to post a reply.
Sorry, comments are closed for this posting.
Please Email Kevin if you have any questions. Thanks!