New to git
. Using GitBash.
After setting up a bare local repository, and then initializing a new local git repository (added and committed files), I tried to do $ git remote add origin /Folder/BareFolder.git
from the /Folder/RepositoryFolder
.
This was all in my E:
drive.
This appeared to work (no output, just the command line $
) and I then did $ git push -u origin master
. To which I received the following:
fatal: 'C:/Program Files/Git/Folder/BareFolder.git does not appear to be a git repository
fatal: Could not read from remote repository.
So it appears I messed up the syntax for the folder.
When I tried to do $ git remote add origin /E/Folder/BareFolder.git
I get the following:
fatal: remote origin exists.
Doing a $ git status
in the /RepositoryFolder
gives me:
On branch master
nothing to commit, working directory clean
I'm not sure how to fix this and get it working correctly. I've followed some well viewed, highly upvoted answers here, and actually followed this particular one: StackOverflow Answer
Any help is much appreciated.