Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git push fails with "fatal: remote error: access denied or repository not exported"

Tags:

git

I'm new to git, and have a server that I have inherited. I have 2 remote repos that seem to have the same setup. The first one is used for productA and can be accessed remotely as follows:

git clone git://server/productA.git productA
touch newfile
git add newfile
git commit -a
git push

This is where I fail. productA works and productB fails with the following message:

fatal: remote error: access denied or repository not exported: /productB.git

I have looked on the server and can't seem to find anything that sticks out as being different between the repositories. What am I missing?

like image 730
2tim Avatar asked Nov 14 '13 20:11

2tim


1 Answers

First, you need to move to sub-directory (e.g. productA in your sample), between clone and touch:

git clone git://server/productA.git productA
cd productA
touch newfile

Anyway, it won't fix your access issue; do you have access to the server permissions?

Maybe your user don't have the same permission on productA and on productB?

Or maybe the requirements to push are not the same (for instance, there could be some rules to push on the master branch).

like image 89
Bsquare ℬℬ Avatar answered Oct 26 '22 17:10

Bsquare ℬℬ