Skip to content

Instantly share code, notes, and snippets.

@mxriverlynn
Last active July 20, 2020 14:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mxriverlynn/d8a11752e987a6b62ed6123aa3edc5ee to your computer and use it in GitHub Desktop.
Save mxriverlynn/d8a11752e987a6b62ed6123aa3edc5ee to your computer and use it in GitHub Desktop.
gitup's configuration
# Gitup: Git Update Dance Configuration
# -------------------------------------
# configuration for gitup can be set as a default for the current user
# by adding a ~/.gituprc file with settings
#
# current project or local directory settings can be added in ./.gituprc
#
# the .gituprc file is a valid shell script, loaded every time gitup is
# run. this means you can add logic, functions, and other calls to the
# .gituprc file and it will be executed at runtime
# MERGE COMMAND
# -------------
# How to update the local git branch, from the upstream branch
#
# Options:
# merge: force a merge of the upstream branch
# rebase: (default) force a rebase of the upstream branch
local branch_name=$(git symbolic-ref -q HEAD)
branch_name=${branch_name##refs/heads/}
if [[ $branch_name == development ]]; then
GITUP_MERGE_COMMAND=merge
else
GITUP_MERGE_COMMAND=rebase
fi
# BRANCH NAME
# -----------
# The remote branch name to pull from the git remote
#
# Default: development
GITUP_BRANCH_NAME=development
# REMOTE NAME
# -----------
# The git remote name to pull from
#
# Default: origin
GITUP_REMOTE_NAME=origin
# SKIP UPDATE
# -----------
# Whether or not a git update is performed prior to running
# the bundle install or db:migrate steps
#
# Options:
# 0: (default) do not skip the update
# 1: skip the update
GITUP_SKIP_UPDATE=0
# SKIP_MIGRATIONS
# ---------------
# Whether or not to skip the db:migration steps after the git update
#
# Options:
# 0: (default) do not skip the db:migration steps
# 1: skip the db:migration steps
GITUP_SKIP_MIGRATIONS=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment