2tim
2tim

Reputation: 223

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

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?

Upvotes: 9

Views: 15203

Answers (1)

Bsquare ℬℬ
Bsquare ℬℬ

Reputation: 4487

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).

Upvotes: 1

Related Questions