Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

selfupdate #21

Open
eins78 opened this Issue · 1 comment

2 participants

Max Albrecht Nick Quaranto
Max Albrecht

Maybe it would be nice to have a "update this sub" aka git-pull as a built-in feature?

Nick Quaranto
Admin

We have this in 37 as 37-update, but its usage is pretty uncommon:

#!/usr/bin/env bash
# Usage: 37 update
# Summary: Pulls the latest changes from GitHub.
set -e

37git() {
  GIT_DIR="$_37_ROOT/.git" git "$@"
}

echo "Updating 37!"

37git fetch
37git reset --hard origin/master

I didn't know if it was important or not to bring this kind of script into the main sub repo. If there's clamoring for it we could consider it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.