demo/README.md

33 lines
586 B
Markdown
Raw Normal View History

2022-07-07 02:24:54 +00:00
# git基本使用
## **1.安装**
2022-07-07 02:28:00 +00:00
**http://git-scm.com/downloads**
2022-07-07 02:19:06 +00:00
2022-07-07 02:24:54 +00:00
## 2.登录
2022-07-07 02:28:00 +00:00
**git config --global user.name "JiangXiuyu" /*配置用户名称*/**
2022-07-07 02:25:38 +00:00
2022-07-07 02:28:00 +00:00
**git config --global user.email "422334010@qq.com" /*配置邮箱*/**
2022-07-07 02:25:38 +00:00
2022-07-07 02:28:00 +00:00
**git config --global user.password 123456 /*配置密码*/**
2022-07-07 02:24:54 +00:00
## 3.查看信息
2022-07-07 02:28:00 +00:00
**git config --list /*信息*/**
2022-07-07 02:24:54 +00:00
## 4.克隆
2022-07-07 02:19:06 +00:00
2022-07-07 02:28:00 +00:00
**git clone http://192.168.1.138:2700/JiangXiuyu/test.git /*克隆*/**
2022-07-07 02:19:06 +00:00
2022-07-07 02:24:54 +00:00
## 5.维护
2022-07-07 02:19:06 +00:00
2022-07-07 02:28:00 +00:00
**① git add 使用(上传暂存区)**
2022-07-07 02:25:38 +00:00
2022-07-07 02:28:00 +00:00
**②git commit 使用(上传版本库)**
2022-07-07 02:25:38 +00:00
2022-07-07 02:28:00 +00:00
**③push/pull 使用(与平台服务器交互)**
2022-07-07 02:19:06 +00:00