lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] My personal git configuration


From: Greg Chicares
Subject: [lmi] My personal git configuration
Date: Sat, 1 Jun 2019 00:50:42 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1

Annotated output of
  cd /opt/lmi/src/lmi
  git config --list --show-origin
I figured it would be good to have this in one accessible
place, particularly for crucial stuff like 'http.sslverify'
and 'core.filemode'.

Standard stuff:

file:/home/you/.gitconfig      user.name=Your Full Name
file:/home/you/.gitconfig      address@hidden
file:/home/you/.gitconfig      color.ui=auto
file:/home/you/.gitconfig      push.default=simple

For corporate PCs that don't let you use git otherwise:

file:/home/you/.gitconfig   http.sslverify=false

For msw (cygwin) only--this is so important that running
  /opt/lmi/src/lmi/check_git_setup.sh
forces it:

file:/home/you/.gitconfig   core.filemode=false

These aren't defaults, but probably should be:

file:/home/you/.gitconfig      pull.ff=only
file:/home/you/.gitconfig      diff.colormoved=plain
file:/home/you/.gitconfig      log.follow=true

Use UTC:

file:/home/you/.gitconfig      log.date=iso8601-strict-local

Make git spew less stuff into your terminal session:

file:/home/you/.gitconfig      core.pager=less -+F -+X

If you ever write a line beginning with '#' in a commit message:

file:/home/you/.gitconfig      commit.cleanup=scissors

Those are global settings. The rest are local.

These are defaults for any repository with a working directory:

file:.git/config        core.repositoryformatversion=0
file:.git/config        core.bare=false
file:.git/config        core.logallrefupdates=true

These enable write access to the savannah repository:

file:.git/config        remote.origin.url=git://git.savannah.nongnu.org/lmi.git
file:.git/config        remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config        address@hidden:/srv/git/lmi.git

To access branches in Vadim's repository:

file:.git/config        branch.master.remote=origin
file:.git/config        branch.master.merge=refs/heads/master
file:.git/config        remote.xanadu.url=https://github.com/vadz/lmi.git
file:.git/config        remote.xanadu.fetch=+refs/heads/*:refs/remotes/xanadu/*

For GNU/Linux [see above for msw] (this probably should be global):

file:.git/config        core.filemode=true



reply via email to

[Prev in Thread] Current Thread [Next in Thread]