1、新建仓库
...
2、拷贝仓库https链接
3、在本地代码根目录下打开git bash
4、使用git init
初始化本地仓库
5、使用git add .
将所有文件添加到本地仓库进行管理
6、使用git commit -m "提交描述"
将代码提交到本地仓库
7、使用命令git remote add origin 远程链接
将本地仓库与远程仓库建立连接
8、如果本地没有README文件而远程仓库有,需要使用git pull --rebase origin main
将远程代码拉取到本地
9、然后使用git push -u origin main
进行初次代码的上传
10、后续修改上传只需要使用git push
文章评论
Have you ever considered writing an ebook or guest authoring on other blogs?
I have a blog based on the same topics you discuss and would love to have you share some stories/information. I know my visitors would appreciate your work.
If you are even remotely interested, feel free
to shoot me an email.