- fork the repository
- clone fork
git clone [email protected]:mystygage/repo.git - add remote upstream
git remote add upstream git://github.com/user/repo
- switch to master
git pull --ff-only upstream mastergit push origin master
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| trap cleanup SIGINT SIGTERM ERR EXIT | |
| script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
| usage() { | |
| cat <<EOF | |
| Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
| version: '3' | |
| services: | |
| mssql-server-linux: | |
| image: microsoft/mssql-server-linux:latest | |
| volumes: | |
| - mssql-server-linux-data:/var/opt/mssql/data | |
| environment: | |
| - ACCEPT_EULA=Y | |
| - SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-yourStrong(!)Password} |
| #!/bin/sh | |
| # Script to launch DbVisualizer by manually invoking Java | |
| # Please note that it's *not* recommended to launch DbVisualizer | |
| # with this script. Instead use the "dbvis" launcher on UNIX/Linux | |
| # or the command "open DbVisualizer.app" on Mac OS X. | |
| if [ -z "$DBVIS_HOME" ] ; then | |
| DBVIS_HOME=`dirname $0` |
| #!/bin/bash | |
| # NOTE: this is an OSX launchd wrapper shell script for Tomcat (to be placed in $CATALINA_HOME/bin) | |
| CATALINA_HOME=/Users/username/tomcat | |
| function shutdown() { | |
| date | |
| echo "Shutting down Tomcat" | |
| $CATALINA_HOME/bin/catalina.sh stop |
| # Credit http://stackoverflow.com/a/2514279 | |
| for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr %cn" $branch | head -n 1` \\t$branch; done | sort -r |
| #! /bin/sh | |
| # ================================================================== | |
| # ______ __ _____ | |
| # /_ __/___ ____ ___ _________ _/ /_ /__ / | |
| # / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
| # / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
| #/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
| # Multi-instance Apache Tomcat installation with a focus | |
| # on best-practices as defined by Apache, SpringSource, and MuleSoft |
git clone [email protected]:mystygage/repo.gitgit remote add upstream git://github.com/user/repogit pull --ff-only upstream mastergit push origin master