0

I installed Git using Homebrew:

brew install git

and then it gave some outputs

$ brew install git
==> Downloading https://homebrew.bintray.com/bottles/git-2.4.0.yosemite.bottle.tar.gz
######################################################################## 100.0%
==> Pouring git-2.4.0.yosemite.bottle.tar.gz
==> Caveats
The OS X keychain credential helper has been installed to:
  /usr/local/bin/git-credential-osxkeychain

The "contrib" directory has been installed to:
  /usr/local/share/git-core/contrib

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/git/2.4.0: 1368 files, 31M
$

Do I need to do any additional post-installation configuration to have all these work?

1
  • Don't you install git by just typing git and following the instructions. At least that is what works for OS X 10.10.3. I have always elected to install Xcode. May 10, 2015 at 20:40

1 Answer 1

1

You should at least create a file called .gitconfig and possibly also one called .gitignore_global in your home directory.


.gitconfig: specifies some default settings; at the very least:

[user]
    name = your_name
    email = your_email_address
[core]
    excludefile = path_to_your_home_folder/.gitignore_global


.gitignore_global: files you always never want to track / put under version control in any of your projects; mine looks like this:

.DS_Store
.localized
*.swp
*.pyc

The first two are files, which OS X might put into a folder; *.swp files are vim swap files and *.pyc are precompiled Python scripts. After that you should be ready to go.

The "caveats" are actually information, not really warnings:

  • git-credential-osxkeychain is a tool that helps you managing your GitHub credentials; the "caveat" simply tells you where you can find the tool
  • the contrib folder contains stuff that "others" have added to git; in my installation the folder only holds the "shell completion" code that is mentioned in the next two caveats you got at the end of the installation; again this is merely an information where you can find the contrib folder
  • the "shell completions" mentioned in the last two caveats provide code to "tab complete" the names of branches and tags when you run git commands in your shell of choice. This is similar to how you can "tab complete" file and folder names in the shell. Once again this is just an information not a warning.

So, long story short: these "caveats" simply provide additional information about your git installation, but you do not need to do anything about them to make git work.

2
  • I was wondering if anything needs to be taken care of for those said "caveats".
    – qazwsx
    May 10, 2015 at 20:52
  • @qazwsx: I've extended my answer with information about the individual "caveats" you saw
    – FLIR31207
    May 13, 2015 at 10:56

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .