之前已经在Gitee上创建仓库并在VSCode中使用。今天将VSCode中的一个项目加入Gitee,名字:abc。
1. 在Gitee上创建仓库。 https://gitee.com/MyName/abc
2. 在VSCode中,初始化仓库
git init
3. git remote add abc https://gitee.com/MyName/abc.git
4.git pull abc master --allow-unrelated-histories
操作命令4,将远程仓库中的文档与本地代码合作。
5.在VSCode中,commit,然后push到远程服务器。