just ram

stuff I should remember

Git feature workflow - more basic commands

Switch on vim colour

Do your self a favour and switch on git colour it makes the command line output much easier to read.

git config --global --add color.ui true

Remote branches

Working as part of a team at some point you’ll need to take a look at a team mates branch, first they need to push their branch up to github.

git push origin -u my-awesome-new-feature

Pull down a team mates branch

Don’t know or can’t remember the remote branch name?

git branch -r

Next you need to create a local branch that tracks the remote branch.

git checkout --track origin/my-awesome-new-feature

This command creates a local branch named my-awesome-new-feature which is tracking the remote branch. Now when you push your changes the remote branch will be updated.

Fix a conflict

When you have a conflict in a feature branch you’ll not be able to auto merge on github you’ll need to merge the branch manually.

git checkout master
git merge my-awesome-new-feature

Fix any conflicts.

fugitive.vim: a Git wrapper so awesome, it should be illegal

Finally git push the merge up to github and you’re done.