Skip to content

Instantly share code, notes, and snippets.

@funivan
Last active December 11, 2015 00:49
Show Gist options
  • Select an option

  • Save funivan/4519492 to your computer and use it in GitHub Desktop.

Select an option

Save funivan/4519492 to your computer and use it in GitHub Desktop.
#!/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