Getting Started with Git


{
	"name": "Carlos Santana",
	"email": "csantana23@gmail.com",
	"twitter": "@csantanapr",
	"GitHub": "http://github.com/csantanapr"
}
				

Best resource for Git

http://git-scm.com/book

Unicorn

Installing Git

  • Command Line
  • Graphical User Interface(GUI)

Installing Git Command Line

http://git-scm.com/downloads

Unicorn

Installing GitHub App GUI

https://help.github.com/articles/set-up-git

Installing Other GUis

http://www.sourcetreeapp.com

Verify you have git cmd install

type "git" on terminal prompt

Get and account on github.com

Free for plubic repos, $ to get private repos

Setup git variables


git config --global user.name "My name"
git config --global user.email "myemail@gmail.com"
				

Avoid password prompt on git cmd

Fork a repo

Clone repo

git clone

Edit files

vi

Add files to workspace

git add .

Commit to tree

git commit -m "My useful message"

Push/Send changes to Repo

git push