git的使用以及github
现在公司使用的是svn,然而,技多不压身,现在学习一下github
http://blog.csdn.net/llf369477769/article/details/51917557这篇博客总结的很详细,但是有一个小小问题,就是,当我push本地仓库时,出现了错误
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'git@github.com:YZJTMAC/VideoPlayer'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
这是因为我本地没有README.md这个文件的原因,百度了一下,加上一句
git pull --rebase origin master
解决!
以后有关git有关的东西我都会保存在这里
进入不同的仓库http://blog.csdn.net/dengjianqiang2011/article/details/9260435