Tell git who you are
$ git config --global user.name "your name"
$ git config --global user.email "your email"
For Mac only
$ git config --global core.editor "open -t -W"
Git Bash
Terminal
$ git init
Initialized empty Git repository in ...
$ git status
On branch master
Initial commit
nothing to commit (create/copy files and use "git add" to track)
$ git add .
$ git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: asdf
A file that tells git
what files/globs to ignore
$ touch .gitignore
$ git commit
# editor pops up
Ooops!
asdfasdfasdfasdfasdfasf
It works!
more @ whatthecommmit.com
Fix #113, software hangs when spacebar is pressed
Move images to separate folder
Separate test source from program source
$ git log
$ git log --oneline
$ git diff HEAD^
$ git status
$ git add .
$ git status
$ git commit
$ git status
Let's get some practice
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="bootstrap.min.css">
Check our code into Git
ul
div.logo
to h3.logo
<ul class="nav nav-pills pull-right">
Check our code into Git
div.jumbotron
div.jumbotron
<p>
<a class="btn btn-lg btn-success" href="#" role="button">
Sign up today
</a>
</p>
Check our code into Git
$ git clone
$ git pull
$ git push
Let's head to GitHub and try
Git for Beginners workshop by NUS Hackers
GitHub's Hello World Guide to GitHub
Bootstrap