-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadMe
20 lines (16 loc) · 981 Bytes
/
ReadMe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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的中间的内容
关键就在分支冲突上
肯定是这个原因引起的