Last active
December 11, 2015 00:49
-
-
Save funivan/4519492 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| # Ivan Scherbak <funivan.com> | |
| # Configure global commands | |
| # | |
| # unset global user | |
| git config --global --unset user.name; | |
| git config --global --unset user.email; | |
| # Set default so that all changes are always pushed to the repository | |
| git config --global push.default "matching" | |
| # Set default so that you avoid unnecessary commits | |
| git config --global branch.autosetuprebase always | |
| # git color mode | |
| git config --global color.status auto; | |
| git config --global color.branch auto; | |
| git config --global color.ui auto; | |
| # | |
| # create repo and go to repo | |
| git init; | |
| git config user.name "Funivan"; | |
| git config user.email "@funivan.com" ; | |
| # Commands | |
| # | |
| # Add deleted files to commit | |
| # for x in `git status | grep deleted | awk '{print $3}'`; do git rm $x; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment