Installing Git
Git Website
: http://git-scm.com
: for mac.. http://git.scm.com/download/mac
In terminal
> Which git
> git --version
In Windows..
Git Bash (same command as unix)
> ls -al
> which git
> git --version
In Ubuntu
> apt-get install git-core
Basic configuration of Git
* System level configuration
in Unix /etc/gitconfig
Program Files\Git\etc\gitconfig
* Single User configuation
~/.gitconfig
$Home\.gitconfig
* Project basis
my_project/.git/config
* System
git config --system
* User
git config --global
* Project
git config
In command line
$ git config --global user.name "Sunny Yoo"
$ git config --global user.email "example@example.com"
$ git config --list
$ git config user.name
$ git config user.email
$ cat .gitconfig
$ git config --global core.editor "vim"
$ git config --global core.editor "notepad"
$ git config --global color.ui true
<Git auto-completion>
$ cd ~
$ curl -OL https://github.com/git/git/raw/master/contrib/completion/git-completion.bash
$ mv ~/git-completion.bash ~/.git-completion.bash
$ ~/.bash_profile or ~/.bashrc
if [ -f ~/.git-completion.bash ]; them
source ~/.git-completion.bash
fi
<Git Help>
$ git help
$ git help push
f : forward
b : backward
q : quit
$ man git-log //same thing git help log