Skip to content

Instantly share code, notes, and snippets.

View polynomial's full-sized avatar

Benjamin Smith polynomial

View GitHub Profile
@mbbx6spp
mbbx6spp / git-tips-part-1.org
Last active April 29, 2023 02:17
Git tips and tricks for dev group presentation

Git Tips

Config

Git has different levels of configuration that apply to different “scopes”:

  • system (almost never needed; not covered here)
  • global (which is “global for a user” scoped)
  • local (which is specific to one local clone)
  • worktree (which only applies to the current worktree; only relevant if you work with worktree s)
  • file (not covered here but you can set a git configuration option, when relevant at the file level, to one file)