Skip to content

Instantly share code, notes, and snippets.

@ni-c
Created September 25, 2014 17:12
Show Gist options
  • Save ni-c/e469a3150f9728647ff2 to your computer and use it in GitHub Desktop.
Save ni-c/e469a3150f9728647ff2 to your computer and use it in GitHub Desktop.

Revisions

  1. ni-c created this gist Sep 25, 2014.
    12 changes: 12 additions & 0 deletions git_cheats.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    # Set global gitignore to ~/.gitignore
    git config --global core.excludesfile '~/.gitignore'

    # Git ignore mode chamges
    git config --global core.filemode false

    # Enable colors
    git config --global color.ui true

    # Set your user name and email address with the following commands:
    git config --global user.name "John Doe"
    git config --global user.email "[email protected]"