After the git repository is built, if the repository has md files, you need to pull once first
1. The error message is as follows
The most similar command is
credential-store
To https://gitee.com/martin-sun/web-ui-test-excel-driver.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘https://gitee.com/martin-sun/web-ui-test-excel-driver.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.
2. excute pull
3. Push local files
1. The error message is as follows
The most similar command is
credential-store
To https://gitee.com/martin-sun/web-ui-test-excel-driver.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to ‘https://gitee.com/martin-sun/web-ui-test-excel-driver.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.
2. excute pull
git pull --rebase origin master
3. Push local files
git push -u origin master
Similar Posts:
- Git Push hint: Updates were rejected because the remote contains work that you do hint: not have …
- [Solved] gitee Push Error: error: failed to push some refs to
- Git | fatal: refusing to merge unrelated histories [How to Solve]
- Git push Updates were rejected because the tip of your current branch is behind
- [Solved] error: failed to push some refs to ‘xxxx’
- How to Solve error: failed to push some refs to ‘xxxx’
- error: src refspec master does not match any [How to Solve]
- [Solved] Updates were rejected because the tip of your current branch is behind
- [Solved] Git pull fatal: refusing to merge unrelated histories
- Git error: failed to push some refs [How to Solve]