git 常用命令

//.......................... 下载

git clone https;

全局的git用户

git config --global user.name "user" 

全局的git邮箱

git config --global user.email "...@qq.com" 

//更新当前git版本

git update

//初始化

git init

//连接至远程仓库

git remote add

//配置当前项目的

git config user.name "user" 当前的git用户
git config user.email "...@qq.com" 当前的git邮箱

//查看git所有的配置

git config --list

//项目路径下就是查看当前项目的配置

git config --list

//查询git 中有哪些修改文件

git status

//添加修改文件至缓冲区

git add .
git add 1.txt

// 提交至仓库区

git commit -m "message"

//推至远程仓库上

git push 

//推至指定分支

git push -u origin (master)[分支名]

//创建分支

git branch (分支名称)

//分支列表

git branch --list

//切换分支

git branch (分支名)
原文地址:https://www.cnblogs.com/HHbJ/p/13444241.html