I have installed Git and configured it as server in CentOS and Windows as client machine.
And then I made one repo and tried to push changes but failed with error updating the current branch in a non-bare repository is denied
and after google search I came to know git config receive.denyCurrentBranch ignore
Then I tried again pushing the changes
~/Documents/GitHub/Proj02 (master)
$ git push origin master
Warning: Permanently added '192.168.56.102' (RSA) to the list of known hosts.
[email protected]'s password:
Counting objects: 2, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (2/2), 229 bytes | 0 bytes/s, done.
Total 2 (delta 1), reused 0 (delta 0)
To ssh://[email protected]:/home/git/Proj02/
75a8cb9..484d414 master -> master
~/Documents/GitHub/Proj02 (master)
But I am unable to see the changes at Remote server
[git@centos Proj02]$ git config receive.denyCurrentBranch ignore
[git@centos Proj02]$ ls
Note : Then after I dont see changes at server , so I created one folder in the server repo and push the changes and from the stdout I saw the changes that the files I pushed from client , they got deleted and the recent changes that I was pushed got submitted.
And I am trying to implement a Git server.
How can I see the changes I just pushed?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…