2013年6月5日 星期三

How to Push an Exist git Repo to a Bare Remote git Repo

add a remote repo
# git remote add --track master origin [Repository URL]

push local master branch to remote origin branch
# git push origin master

If I use "git push", I get an error "git push ‘No refs in common and none specified’".