My project consists of:
- BitBack git storage
- Local copy
- Copy of development on the server
On my server, I ran the following command to create an open repo
git init --bare project.git
To create the ability to click on my server, I pulled out the following local machines from my repository:
git remote add serverrepo username@serverip:/path/to/repo/project.git
git remote set-url serverrepo --push --add username@serverip:/path/to/repo/project.git
If I try to click on the server by doing
git push serverrepo master
I get
fatal: '/path/to/repo/project.git' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
I have been looking for days and I cannot understand what the problem is. Can anybody help me?
source
share