Sha256: ffa7098c0c5d984bedf2c697322dca2a8b495c3d36c585f1140581668e9ed57b

Contents?: true

Size: 939 Bytes

Versions: 108

Compression:

Stored size: 939 Bytes

Contents

#!/bin/sh
#
# This file has been modified by Cybrid.
#
# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
#
# Usage example: /bin/sh ./git_push.sh "brent-cybrid" "brent@cybrid.app" "Cybrid-app" "openapi-petstore-perl" "v0.0.0"
#
# NOTE: This will overwrite all the git history for the repo.
#

set -e

git_user_id=$1
git_user_email=$2
git_org_id=$3
git_repo_id=$4
release_version=$5

git config --global user.email "${git_user_email}"
git config --global user.name "${git_user_id}"

git init -b main

git add .

git commit -m "$release_version"

git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@github.com/${git_org_id}/${git_repo_id}.git

git tag -a $release_version -m "$release_version"

echo "Git pushing to https://github.com/${git_org_id}/${git_repo_id}.git"

git push -f origin main 2>&1 | grep -v 'To https'
git push -f origin $release_version 2>&1 | grep -v 'To https'

Version data entries

108 entries across 108 versions & 3 rubygems

Version Path
cybrid_api_organization_ruby-0.3.17 git_push.sh
cybrid_api_bank_ruby-0.3.17 git_push.sh
cybrid_api_id_ruby-0.3.17 git_push.sh
cybrid_api_organization_ruby-0.3.16 git_push.sh
cybrid_api_id_ruby-0.3.16 git_push.sh
cybrid_api_bank_ruby-0.3.16 git_push.sh
cybrid_api_id_ruby-0.3.15 git_push.sh
cybrid_api_bank_ruby-0.3.15 git_push.sh
cybrid_api_organization_ruby-0.3.15 git_push.sh
cybrid_api_organization_ruby-0.3.14 git_push.sh
cybrid_api_bank_ruby-0.3.14 git_push.sh
cybrid_api_id_ruby-0.3.14 git_push.sh
cybrid_api_id_ruby-0.3.13 git_push.sh
cybrid_api_bank_ruby-0.3.13 git_push.sh
cybrid_api_organization_ruby-0.3.13 git_push.sh
cybrid_api_bank_ruby-0.3.12 git_push.sh
cybrid_api_id_ruby-0.3.12 git_push.sh
cybrid_api_organization_ruby-0.3.12 git_push.sh
cybrid_api_organization_ruby-0.3.10 git_push.sh
cybrid_api_bank_ruby-0.3.10 git_push.sh