Git 基本命令记录(1)
2018-03-18 16:30
337 查看
1.git的一些配置
配置用户名:git config --global user.name281910885@qq.com
配置邮箱:git config --global user.email281910885@qq.com
2.git查看帮助文档
git config --help
git help config
3.git查询
git config user.name
git config --get user.name
4.查询所有list
$ git config --list --global
5.git初始化
git init git_test_folder
cd git_test_folder
touch a
touch b
git add a b
git status
6.git提交到暂存区
git commit -m "test git"
7.git删除文件
git rm fileName
8.git还原
git reset HEAD .a.swp
9.删除缓存区文件
git rm --cache .a.swp
10.git重命名
git mv a c
二、git本地分支与合并
1.git新建分支
git branch test
git checkout test
配置用户名:git config --global user.name281910885@qq.com
配置邮箱:git config --global user.email281910885@qq.com
2.git查看帮助文档
git config --help
git help config
3.git查询
git config user.name
git config --get user.name
4.查询所有list
$ git config --list --global
5.git初始化
git init git_test_folder
cd git_test_folder
touch a
touch b
git add a b
git status
6.git提交到暂存区
git commit -m "test git"
7.git删除文件
git rm fileName
8.git还原
git reset HEAD .a.swp
9.删除缓存区文件
git rm --cache .a.swp
10.git重命名
git mv a c
二、git本地分支与合并
1.git新建分支
git branch test
git checkout test
相关文章推荐
- Git入门基本命令记录
- git 基本命令记录
- git 基本命令记录
- Git_Git基本操作_第6节_查看与对比历史记录
- Git bash 基本使用及常用命令
- Git Heroku 基本命令总结
- git基本概念、基本命令、与SVN对比
- Git常用命令整理记录
- GIT第二讲 基本操作流程和常用命令
- Maven学习记录之maven基本操作命令,maven本地工厂的创建,maven骨架的生成,以及在eclipse中创建maven工程:
- 使用git命令修改指定的commit提交记录并提交到远程服务器的方法
- GIT 命令 操作 记录
- git基本命令之删除撤销操作
- 接触git,初学git命令记录一下
- 关于git的基本命令总结
- git 基本命令
- git基本使用命令
- 15分钟学会git基本的操作命令
- git基本使用命令
- git基本命令整理