Add Git Branch Name to Terminal Prompt (Mac)  bash

When in a repository directory you can show the name of the currently checked out Git branch in the prompt, making it easier to track where you are (and where you're about to commit). The following instructions are written for Mac OS X (Lion) or later, using a terminal ... More

Initialize Git Repository from Local Files

Initialize a Git repository from a local directory, and the files therein, pushing it to an existing but empty remote. Assumes that the remote bare repository has been created. Requirements Git An empty bare remote repository Method Open a terminal/console (Terminal on Mac/Linux, cmd.exe on Windows) and ... More