Some common git usage --------------------- To ignore certain files: $ echo "log/*.log" >> .gitignore $ echo "tmp/**/*" >> .gitignore $ git add . $ git commit -m "Add files" To create a public repository: $ mkdir someapp.git $ cd someapp.git $ git --bare init $ git-update-server-info Add public repository as a remote: $ git repo-config remotes.origin.url [url] $ git push
cheat sheets.
$ cheat git_usage