Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (33 sloc) 1.14 KB

Set up git

git config --global "drtoast" git config --global ""

// generate a public key in ~/.ssh and add to ssh-keygen -t rsa -C ""

Create a new project

click "create repository" at, then

mkdir dotfiles
cd dotfiles
git init
git add
git commit -m 'first commit'
git remote add origin
git push origin master

Push an existing local repo into github

cd yourproject
git remote add origin
git push origin master

Pull changes to a forked branch

show remotes:

git remote -v

add a remote:

git remote add mattetti git://

pull from a remote:

git pull origin master (from my repo)
git pull mattetti master (from his repo)

Show local tags

git tag

Tag a release

git tag -a v0.0.2 -m 'tagging release v0.0.2'
git push origin master --tags