#!/bin/bash # # ZTD extension to commit, push and fetch a project. # # Parameters PROJECT="$1" # Try to get there if [ ! -z "$PROJECT" ]; then cd $PROJECT fi # Sync if [ -d '.git' ]; then if which updates > /dev/null; then updates else git commit -a -m "Updates $PROJECT" git push fi git fetch --all fi