Skip to content

Instantly share code, notes, and snippets.

@averyvery
Created September 22, 2014 15:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save averyvery/c0952ca27a4fd3d678a7 to your computer and use it in GitHub Desktop.
Save averyvery/c0952ca27a4fd3d678a7 to your computer and use it in GitHub Desktop.

Create a shallow clone with the last fifty commits. git clone --depth 50 some-repository

Open the current diff in the editor. git add -e

View ALL branches: git branch -a master

Fetch changes from all remote repositories. git fetch --all

Pull changes and rebase instead of merge. git pull --rebase origin master

Initialize a bare (no files) repository. git init --bare /path/to/some/repo.git

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment