demo/README.md

46 lines
921 B
Markdown

# git基本使用
## **1.安装**
**http://git-scm.com/downloads**
## 2.登录
**git config --global user.name "JiangXiuyu" /*配置用户名称 global 代表优先级中级*/**
**git config --global user.email "422334010@qq.com" /*配置邮箱*/**
**git config --global user.password 123456 /*配置密码*/**
## 3.查看信息
**git config --list /*信息*/**
## 4.克隆
**git clone http://192.168.1.138:2700/JiangXiuyu/test.git /*克隆*/**
## 5.维护
**① git add 使用(上传暂存区)**
**②git commit 使用(上传版本库)**
**③push/clone 使用(本地仓库与远程仓库交互)**
## 6.其他
想学习或了解git功能可以去网上查阅
教程推荐: https://www.runoob.com/git/git-tutorial.html
想查看某个命令的文档,可以通过下面任意一个指令查看(<command>,你要查的命令)
git help <command>
git <command> -h
git <command> --help