技术极简类录--git

git 简单命令

git config --global --list   查看所有全局配置

git config user.name    查看git用户名配置

git config user.password  查看git密码配置

git config user.email    查看git邮箱配置

设置git用户名、密码、邮箱的配置(全局配置)

git config --global user.name 用户命

git config --global user.name test

git config --global user.password 密码

git config --global user.password password

git config --global user.password 邮箱

git config --global user.email "[email protected]"


git commit:是将本地修改过的文件提交到本地库中;

git push:是将本地库中的最新信息发送给远程库;

git pull:是从远程获取最新版本到本地,并自动merge;

git fetch:是从远程获取最新版本到本地,不会自动merge;

git merge:是用于从指定的commit(s)合并到当前分支,用来合并两个分支;


git clone https://github.com/Anthoneey/shortUrl.git
git pull origin shortUrl-20191030-dev

猜你喜欢

转载自www.cnblogs.com/loytime/p/11766611.html