Git
Basic git commands that might be useful:
-
git checkout <branch name>
switches to a branch or creates a new one
-
git pull --rebase
performs git fetch
and git rebase
-
git push
uploads current local branch to its remote one
-
git add <filename>
adds a file
- use
git add -ip
(interactive patch) to choose what changes to add
- use
git -av
(add all changed files; verbose) instad of git -am "Add public index"
(m - inline message)
- use
git commit --amend
instead of git commit -am "fix"
- use
git rebase master
instead of git merge master
More info on git:
proper git.
Style guides
Links to Ruby/Rails style guides: