I have a question about Git.

Asked 2 years ago, Updated 2 years ago, 97 views

I made a storage on GitHub and used a program called msysGit to do git clone. Put the entire source file to be used after the school starts in a clone folder and git add -> git commit -m -> git push The following error occurred when I did.

Should I push again after git fetch? I'd like to know exactly what the error is and how to solve it.

git github vcs

2022-09-22 20:57

1 Answers

It seems to be an error when attempting to push without receiving a commit in the remote repository (git server). There are two ways.

How to update with the latest data locally using git pull and push. This method may cause conflict during the merge process.

To force a push using git push --force. You can assume that this method stores data that is located locally. (Vinegar)

It is strange that there would have been no issue if the process you mentioned after copying was carried out


2022-09-22 20:57

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.