Git | How to add an existing project to Gitee

Git | How to add existing projects to Gitee
Initialize Git
git init Initialize Git

git add . Add files

git commit -m 'commit description' submitted to the local warehouse


git remote add origin https://gitee.com/**************.git to connect to the remote warehouse

git push -u origin master Create the master branch of the upload stream push warehouse origin, the following errors may occur


git pull --rebase origin master to synchronize the remote library to the local warehouse.


If the remote repository does not have a README.md file, create it by touch README.md, such as:

$ touch README.md
$ git add .
$ git commit -m 'commit instructions' 
$ git push -u origin master
 

Guess you like

Origin blog.csdn.net/lvmengzou/article/details/119165790