I realize that this question has been asked several times. I went through almost all of those before asking it here.
I have a git repo on server A and want it to push on remote server B.
Steps i followed:
On server B:
mkdir repo
cd repo
git init --bare
ls
branches config description HEAD hooks info objects refs
On server A where my local repo is present.
cd localrepo
git remote add new-origin root@B:/root/repo
git push new-origin master
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (12/12), 976 bytes | 0 bytes/s, done.
Total 12 (delta 1), reused 0 (delta 0)
To root@172.16.189.221:/root/four
* [new branch] master -> master
Now when i check on server B. Cannot find the updated files. each time i update on localrepo on A and do a push to B. it updates the contents under objects folder in B but am unable to see the files.
Could anyone point me in the right direction :)