Skip to content

Akira2017inFrankfurt/learngit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

git push -f origin master

关于下面这个错误的解决:
! [rejected]        master -> dev (fetch first)
error: failed to push some refs to 'https://[email protected]/repo_user/repo_name.git'
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.

地址: https://stackoverflow.com/questions/24357108/git-updates-were-rejected-because-the-remote-contains-work-that-you-do-not-have/42198976#42198976

然后我紧接着又试了一次
发现使用这个命令将代码推送到指定仓库的时候
以前存在的那几个就直接不见了

所以 现在很有必要的就是 看莫烦Python的中间的内容
关键就在分支冲突上
肯定是这个原因引起的

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages