本地项目如何上传到gitee
1、提前建立好远程仓库。
2、初始化本地仓库
执行
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject
$ git init
Initialized empty Git repository in F:/pythonhuanjing/zuoye/pythonProject/.git/
3、执行git add .
将所有文件添加到暂存区
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject (master)
$ git add .
warning: in the working copy of '.idea/inspectionProfiles/profiles_settings.xml', LF will be replaced by CRLF the next time Git touches it
4、执行git commit -m '本次提交备注message'
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject (master)
$ git commit -m '本次提交备注message'
[master (root-commit) 7a35cb0] 本次提交备注message
8 files changed, 196 insertions(+)
create mode 100644 .idea/.gitignore
create mode 100644 .idea/inspectionProfiles/profiles_settings.xml
create mode 100644 .idea/misc.xml
create mode 100644 .idea/modules.xml
create mode 100644 .idea/pythonProject.iml
create mode 100644 dingding/send.py
create mode 100644 dingding/test_script.py
create mode 100644 test.py
5、执行 git remote add origin https://gitee.com/blanhb/my_ruoyi.git
关联远程仓库
复制自己的gitee上的仓库地址
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject (master)
$ git remote add origin PYTHON: 12345已去玩儿童与就开了
6、执行git pull origin master
拉取合并远程仓库代码
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject (master)
$ git pull origin master
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile
fatal: couldn't find remote ref master
7、执行git pull origin master
拉取合并远程仓库代码
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject (master)
$ git pull origin master --allow-unrelated-histories
fatal: couldn't find remote ref master
8、执行git push -u origin master
将本地代码推送到远程仓库
14182@▒▒▒▒ MINGW64 /f/pythonhuanjing/zuoye/pythonProject (master)
$ git push -u origin master
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 16 threads
Compressing objects: 100% (12/12), done.
Writing objects: 100% (13/13), 4.96 KiB | 4.96 MiB/s, done.
Total 13 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Powered by GITEE.COM [1.1.5]
remote: Set trace flag 5d43428e
* [new branch] master -> master
branch 'master' set up to track 'origin/master'.