git出现的错误汇总及解决⽅法计提折旧的方法
⽬录
git错误汇总
错误⼀:Updates were rejected becau the remote contains work that you do
劳务合同怎么写执⾏命令:
git push -u origin master
努力英语怎么说出现错误:
! [rejected] master -> master (fetch first)
克隆好友error: failed to push some refs to 'xxx.git'
hint: Updates were rejected becau the remote contains work that you do
hint: not have locally. This is usually caud 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.
原因分析:
因为我们在本地新建库后,与远程仓库的内容不⼀致导致的。为此在我向远程库推送的时候,要先进⾏pull,让本地新建的库和远程库进⾏同步。
解决⽅法:
# 注:这⾥master应该修改成⾃⼰push的仓库
git pull origin master // 把本地仓库的变化连接到远程仓库主分⽀