美文网首页
GIT常用命令

GIT常用命令

作者: kingcesc | 来源:发表于2020-02-16 20:20 被阅读0次

配置

git的配置信息默认保存在用户主目录下.gitconfig文件中

显示当前的Git配置

git config --list

编辑Git配置文件

git config -e [--global]

设置提交代码时的用户信息

git config [--global] user.name "[name]"
git config [--global] user.email "[email address]"

仓库操作

分支操作

列出本地分支

git branch

列出远程分支

git branch -r

删除本地分支

git branch -d brand_name

删除远程分支

git checkout

相关文章

网友评论

      本文标题:GIT常用命令

      本文链接:https://www.haomeiwen.com/subject/lyvmfhtx.html