How does gitee git its own local code to the branch of the new warehouse

How does gitee git its own local code to the branch of the new warehouse?
Direct pull will overwrite the local code
[External link image transfer failed, the source site may have anti-theft inserted here! Chain mechanism, create a description] It is recommended to upload the image to https://(imbg.csdniEWwymg.cn/202005281101501.png63983)(https://imgblog. csdnimg.cn/20200528114901501.png)]
. After the branch is built locally, pull and push will report an error
. 2020-06-02 Update:
After remote add origin,
directly git pull and then switch the branch , which
is equivalent to pulling down the branch first and then switching the branch code locally.

I have modified the code locally but want to directly pull the direct pull in the remote warehouse and said to commit the local modification
first. 1. Give up the local modification before adding . git
checkout filename/ .
2. Give up the add cache before commit after add .
The add operation of filename returns to step 1.
3. Roll back the version after commit.
git reset --hard HEAD^
First use git log to view the historical version

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326927171&siteId=291194637