git push origin master:refs/heads/master what does this do
When I create a new repo on my gitolite repository I always have to enter the following command before I can start pushing code to the server. git push origin master:refs/heads/master What does it do ? My guess is that is has to do with the head reference not sure. Could someone explain it to me? There's three parts to this command: git push This invokes the push command origin This names the remote to which you are pushing. This is either one of the named remotes stored in .git/config (you can list these with git remote ), a URL, or the token . which means the current repository. master:refs