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?
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With