# initialize repository
git init

# stage all files 
git add .

# show config variables
git config --list

# delete repository
rm -rf .git

# change the log message of the last commit
git commit --amend -m "your new message"

# http://nakkaya.com/2009/09/24/git-delete-last-commit/
## delete last NOT pushed commit (use hard if prev changes should be deleted)
git reset --soft HEAD^/HEAD^^

## revert by creating a new commit if pushed and pulled
git revert HEAD

# clone a github repository in the my_local directory (url found on the repository page)
git clone [email protected]:c10b10/wp-posts-to-posts.git my_local

# how to push an amended commit to a public repo: http://stackoverflow.com/questions/253055/how-do-i-push-amended-commit-to-the-remote-git-repo

# Sync with master on a forked repo
git remote add scribu git://github.com/scribu/wp-posts-to-posts.git # add the repo as scribu
git pull scribu master # pull changes

# Forking http://help.github.com/fork-a-repo/