demo/README.md

46 lines
921 B
Plaintext
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 09:22:03 +00:00
**git config --global user.name "JiangXiuyu" /*配置用户名称 global 代表优先级中级*/**
2022-07-07 02:25:38 +00:00
2022-07-07 09:03:31 +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 03:24:56 +00:00
**③push/clone 使用(本地仓库与远程仓库交互)**
2022-07-07 02:19:06 +00:00
2022-07-07 02:44:13 +00:00
## 6.其他
2022-07-07 02:19:06 +00:00
2022-07-07 02:44:13 +00:00
想学习或了解git功能可以去网上查阅
2022-07-07 02:19:06 +00:00
2022-07-07 02:44:13 +00:00
教程推荐: https://www.runoob.com/git/git-tutorial.html
想查看某个命令的文档,可以通过下面任意一个指令查看(<command>,你要查的命令)
git help <command>
git <command> -h
git <command> --help