I am starting to use "Git" for version control. I've initialized my repo. C:\Myrepo and committed several files.
git init
git add .
git commit
Then I cloned this "Myrepo".
git clone C:\Myrepo c:\Newrepo
Further I want to pull changes from Newrepo back to Myrepo.
#c:\Myrepo>git pull c:\Newrepo
#From c:\Newrepo
# * branch HEAD -> FETCH_HEAD
#Already up-to-date.
It's OK.
BUT the I want to pull the changes from c:\Myrepo to c:\Newrepo then I am getting fatal as follow
#c:\Newrepo>git pull c:\Myrepo
#fatal: 'c:\Myrepo' does not appear to be a git repository
#fatal: The remote end hung up unexpectedly
How can I pull or push the changes from c:\Myrepo to new formed repository? What procedure should I use? How to correct use push/pull? Is it possible without bare repo? Do I need to somehow config the repos?
Still have problem with "push" command... How to create repo to accept push? I am still creating repo just with "git init" if so I am not able to push to this dir? How to do the push? It must be initialized as "bare" repo to enable "push" or is it possible to push to working copy repo?
Best regards, Peter