/home/desid573/public_html/angel/payment/xero
NameSizeModeActions
docs/-0755rm
lib/-0755rm
test/-0755rm
vendor/-0755rm
__MACOSX/-0755rm
authorisation.php19060644editdlrm
authorizedResource.php17420644editdlrm
callback.php22630644editdlrm
CODE_OF_CONDUCT.md33440644editdlrm
composer.json9840644editdlrm
CONTRIBUTING.md54530644editdlrm
error_log434770644editdlrm
getInvoice.php45570644editdlrm
git_push.sh16610644editdlrm
phpunit.xml.dist6880644editdlrm
README.md109520644editdlrm
storage.php15570644editdlrm
vendor.zip8862410644editdlrm
Edit: /home/desid573/public_html/angel/payment/xero/git_push.sh (1661B)
#!/bin/sh # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ # # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" git_user_id=$1 git_repo_id=$2 release_note=$3 if [ "$git_user_id" = "" ]; then git_user_id="xeroapi" echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" fi if [ "$git_repo_id" = "" ]; then git_repo_id="xero-php-oauth2" echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" fi if [ "$release_note" = "" ]; then release_note="Minor update" echo "[INFO] No command line input provided. Set \$release_note to $release_note" fi # Initialize the local directory as a Git repository git init # Adds the files in the local repository and stages them for commit. git add . # Commits the tracked changes and prepares them to be pushed to a remote repository. git commit -m "$release_note" # Sets the new remote git_remote=`git remote` if [ "$git_remote" = "" ]; then # git remote not defined if [ "$GIT_TOKEN" = "" ]; then echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git else git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git fi fi git pull origin master # Pushes (Forces) the changes in the local repository up to the remote repository echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git" git push origin master 2>&1 | grep -v 'To https'