git使用说明(码云)
1. 安装git
双击 Git-2.21.0-64-bit.exe
一路回车即可安装
2. 公钥生成
桌面右键打开Git Bash Here
, 使用如下命令生成公钥, 一路回车即可.
ssh-keygen
显示如下
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\dotcoo/.ssh/id_rsa):
Created directory 'C:\Users\dotcoo/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\dotcoo/.ssh/id_rsa.
Your public key has been saved in C:\Users\dotcoo/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:qZlpETjCUIdKcjCY7pzAqZlpETjCUIdKcjCY7pzA dotcoo@DESKTOP-347FRPP
The key's randomart image is:
+---[RSA 2048]----+
|=+... .. |
|+=o. . . |
|=o+ + o . + |
|o+ + o *.+=.o |
|o+ + o *.+=.o |
| + . O E..o |
|+=o. . . |
|+=o. . . |
|=+... .. |
+----[SHA256]-----+
第七行的 C:\Users\dotcoo/.ssh/id_rsa.pub
就是公钥
用vs直接打开这个文件 复制文件内容到 码云的公钥中.
3. 码云地址
创建新git仓库
若已创建项目,不要勾选
使用Readme文件初始化这个仓库
https://gitee.com/projects/new
4. 添加根目录文件
.gitignore
node_modules
.idea
.vscode
.git
README.md
## 制作首页App组件
1. 完成 Header 区域,使用的是 Mint-UI 中的Header组件
2. 制作底部的 Tabbar 区域,使用的是 MUI 的 Tabbar.html
未完待续...
LICENSE
The MIT License (MIT)
Copyright (c) 2014 connors and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
5. 初始化个人信息
只需要执行一次
git config --global user.name "姓名"
git config --global user.email "邮箱@163.com"
git初始化
每个项目只需要初始化一次
git init
查看状态
git status
添加变化的文件
每次修改了文件需要执行此命令
git add .
提交到本地
将修改的内容提交本地
git commit -m "更新描述"
添加远程服务器
git remote add origin https://gitee.com/用户名/git仓库名称.git
推送到远程服务器
git push -u origin master
每日打卡
以后每天下边以后,操作这三步即可.
git add .
git commit -m "更新描述"
git push