# 算法笔记 **Repository Path**: shao_wei521/giteeTest ## Basic Information - **Project Name**: 算法笔记 - **Description**: gitee使用学习 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-01-31 - **Last Updated**: 2021-03-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # giteeTest #### 介绍 git使用学习笔记 #### 常用命令 1. `git init` 初始化当前文件夹作为仓库 2. `git clone 仓库地址` 克隆仓库到本地 3. `git config --list` 查看设置(包括用户信息) 4. `git config --global user.name 用户名` `git config --global user.email 邮件` 更改用户信息 5. `git add 文件名` 和 `git add 文件夹名/*` 和 `git add *` 将本地文件或文件夹提交到暂存区。 6. `git status` 查看暂存区状态 7. `git commit -m '提交的说明信息'` 提交到仓库 8. `git push` 提交到远程仓库 9. `git rm 文件名` 和 `git rm -r 文件夹名` 删除文件或文件夹(本地和暂存区都会删除) 10. `git rm --cached 文件名` 和 `git rm -r --cached 文件夹名` 删除文件或文件夹(本地不会删,只删除暂存区)