Difference between revisions of "Git Installation & Initial Setup"
From GLMWiki
Line 14: | Line 14: | ||
<pre> | <pre> | ||
[user] | [user] | ||
− | + | name = Steve Sutton (this should be your name) | |
+ | email = steve@gaslightmedia.com (your email address at gaslightmedia.com) | ||
[color] | [color] | ||
diff = always | diff = always |
Revision as of 11:28, 7 August 2014
Reference for this page http://git-scm.com/book/en/Getting-Started-First-Time-Git-Setup
At minimum you'll need to setup your name and email for git.
git config --global user.name "John Doe" git config --global user.email johndoe@example.com
Windows Users Since your files actually reside on a unix server you'll need to keep your line endings the same as unix format. You don’t want Git to automatically convert them when you check out files; however, if a file with CRLF endings accidentally gets introduced, then you may want Git to fix it. You can tell Git to convert CRLF to LF on commit but not the other way around by setting core.autocrlf to input:
git config --global core.autocrlf input
Steve's .gitconfig file
[user] name = Steve Sutton (this should be your name) email = steve@gaslightmedia.com (your email address at gaslightmedia.com) [color] diff = always ui = true [core] excludesfile = /home/steve/.gitignore_global (change this to yours) autocrlf = input [alias] ci = commit co = checkout br = branch st = status graph = log --pretty=format:\"%h %s\" --graph [push] default = simple [branch] autosetuprebase = always