← 返回目录

配置操作

第 1 / 6 卷

本文整理了一些常用的 Git 操作,老司机可以温故知新,新手可以点赞收藏。文末提供了入门教程及学习资源,请自行下滑~

配置操作

全局配置

git config --global user.name '你的名字' git config --global user.email '你的邮箱'

当前仓库配置

git config --local user.name '你的名字' git config --local user.email '你的邮箱'

查看 global 配置

git config --global --list

查看当前仓库配置

git config --local --list

删除 global 配置

git config --unset --global 要删除的配置项

删除当前仓库配置

全站分卷索引 · 6 卷
  1. 1配置操作
  2. 2本地操作
  3. 3查看哪些文件没被 Git 管控
  4. 4基于某个 commit 创建分支
  5. 5查看涉及到某文件变更的所有 commit
  6. 6重命名远端仓库