Skip to content

Git

Git Stuff

easy-git.sh

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#!/bin/bash
DIRECTORY=.git
if [ -z "$1" ]; then
    echo "You savage, you need a comment for a commit!"
    exit
fi

if [ -d "$DIRECTORY" ]; then
    git add .
    git commit -S -m "$1"
    git push origin master
else
    echo "This is NOT a git repo"
fi

Credentials

git config --global credential.helper store
git config --global credential.helper 'cache --timeout=3600'