#!/bin/sh

# commit all changes to gxd

git config --global user.email $ADMIN_EMAIL
git config --global user.name $ADMIN_NAME


set -e

BRANCH=$1

cd $GXD

if [ -n "$BRANCH" ] ; then
    git checkout master
    git checkout -b $BRANCH || git checkout $BRANCH
    git add .
    git commit -m "incoming for $TODAY"
    git push --set-upstream origin $BRANCH

    # submit pull request
    git request-pull master ${GITURL} $BRANCH
    git checkout master

#    git merge $BRANCH
#    git branch -d $BRANCH
else 
    git add .
    git commit -m "incoming for $TODAY"
fi



#!/bin/sh

# commit all changes to gxd

git config --global user.email $ADMIN_EMAIL
git config --global user.name $ADMIN_NAME


set -e

BRANCH=$1

cd $GXD

if [ -n "$BRANCH" ] ; then
    git checkout master
    git checkout -b $BRANCH || git checkout $BRANCH
    git add .
    git commit -m "incoming for $TODAY"
    ssh-agent bash -c "ssh-add ~/.ssh/gxd_rsa; git push --set-upstream origin $BRANCH"
    
    # submit pull request
    git request-pull master ${GITURL} $BRANCH
    git checkout master

#    git merge $BRANCH
#    git branch -d $BRANCH
else 
    git add .
    git commit -m "incoming for $TODAY"
fi



Add keys to git push
Add keys to git push
