git use summary

Summary
1. Execute the following statement to report an error
$ git remote add origin [email protected]:ithuplion/JavaEE.git
error message: fatal: remote origin already exists.
Solution:
first git remote rm origin
and then execute:
$ git remote add origin [email protected]:ithuplion/JavaEE.git

2. Execute the following statement to report an error

git push origin master

error message: error: failed to push som refs to....

Solution:

$ git pull origin master //First put the remote server github The above files are pulled first, and then pushed up.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326391851&siteId=291194637