Skip to content

Instantly share code, notes, and snippets.

View acaloiaro's full-sized avatar

Adriano Caloiaro acaloiaro

View GitHub Profile

GIT_DIR finder

Walk up and down the directory tree in search of a GIT_DIR.

Motivation

By default, git init creates a GIT_DIR named .git in the current working directory. However, it can be provided the env var GIT_DIR to create the git directory elsewhere.

e.g. GIT_DIR=foobar git init . results in a GIT_DIR named foobar instead of .git

@acaloiaro
acaloiaro / keybase.md
Created February 6, 2015 21:38
keybase.md

Keybase proof

I hereby claim:

  • I am acaloiaro on github.
  • I am adriano (https://keybase.io/adriano) on keybase.
  • I have a public key whose fingerprint is 18B8 7EB6 5FEA 7DA1 0C54 2E61 8BBC 30A2 2F15 583E

To claim this, I am signing this object: