赞
踩
Git基本操作——将本地项目同步到远程仓库
3.进入小程序项目的根目录:如,D:\Java\order-mini-app,右键git bash,进入命令行
huawei@yanni matebook MINGW64 /d/Java/order-mini-app $ git init Initialized empty Git repository in D:/Java/order-mini-app/.git/ huawei@yanni matebook MINGW64 /d/Java/order-mini-app $ git config --global user.name "tenneling" huawei@yanni matebook MINGW64 /d/Java/order-mini-app $ git config --global user.email "tenneling@163.com" huawei@yanni matebook MINGW64 /d/Java/order-mini-app $ git config --global --add safe.directory D:/Java/order-mini-app huawei@yanni matebook MINGW64 /d/Java/order-mini-app (master) $ git remote add origin https://gitee.com/tenneling/order-mini-app.git huawei@yanni matebook MINGW64 /d/Java/order-mini-app (master) $ git add . warning: in the working copy of '.eslintrc.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'app.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'app.json', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'app.wxss', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/index/index.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/index/index.json', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/index/index.wxml', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/index/index.wxss', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/logs/logs.js', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/logs/logs.json', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/logs/logs.wxml', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'pages/logs/logs.wxss', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'sitemap.json', LF will be replaced by CRLF the next time Git touches it warning: in the working copy of 'utils/util.js', LF will be replaced by CRLF the next time Git touches it huawei@yanni matebook MINGW64 /d/Java/order-mini-app (master) $ git commit -m "Initial commit" [master (root-commit) 9783ef2] Initial commit 16 files changed, 322 insertions(+) create mode 100644 .eslintrc.js create mode 100644 app.js create mode 100644 app.json create mode 100644 app.wxss create mode 100644 pages/index/index.js create mode 100644 pages/index/index.json create mode 100644 pages/index/index.wxml create mode 100644 pages/index/index.wxss create mode 100644 pages/logs/logs.js create mode 100644 pages/logs/logs.json create mode 100644 pages/logs/logs.wxml create mode 100644 pages/logs/logs.wxss create mode 100644 project.config.json create mode 100644 project.private.config.json create mode 100644 sitemap.json create mode 100644 utils/util.js huawei@yanni matebook MINGW64 /d/Java/order-mini-app (master) $ git push -u origin master warning: ----------------- SECURITY WARNING ---------------- warning: | TLS certificate verification has been disabled! | warning: --------------------------------------------------- warning: HTTPS connections may not be secure. See https://aka.ms/gcm/tlsverify for more information. Enumerating objects: 21, done. Counting objects: 100% (21/21), done. Delta compression using up to 8 threads Compressing objects: 100% (19/19), done. Writing objects: 100% (21/21), 4.91 KiB | 387.00 KiB/s, done. Total 21 (delta 0), reused 0 (delta 0), pack-reused 0 remote: Powered by GITEE.COM [GNK-6.4] To https://gitee.com/tenneling/order-mini-app.git * [new branch] master -> master branch 'master' set up to track 'origin/master'.
上传完成后,码云上也同步成功了
在浏览器网址部分中的“github”后边,添加一个“1s”
示例:https://github.com/2YSP/rpc-spring-boot-starter --> https://github1s.com/2YSP/rpc-spring-boot-starter
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。