Tips for GitHub and Vim

Github

I would generally always start by creating a GitHub repository. Then to copy an existing git directory

git clone <SSH URL>

To pull changes from remote:

git pull <remote> <branch>

To push all changes to remote:

git add .
git commit -m 'COMMIT MESSAGE HERE'
git push <remote> <branch>

Vim

To open and edit a file in the same directory where the current file is:

:e %:h/filename