SetupForDevelopment.sh 723 Bytes
Newer Older
Brad King's avatar
Brad King committed
1 2
#!/usr/bin/env bash

3 4 5
cd "${BASH_SOURCE%/*}/.." &&
utilities/gitsetup/setup-user && echo &&
utilities/gitsetup/setup-hooks && echo &&
6
utilities/gitsetup/setup-lfs && echo &&
7 8 9 10 11 12
utilities/gitsetup/SetupGitAliases.sh && echo &&
(utilities/gitsetup/setup-upstream ||
 echo 'Failed to setup origin.  Run this again to retry.') && echo &&
(utilities/gitsetup/setup-gitlab ||
 echo 'Failed to setup GitLab.  Run this again to retry.') && echo &&
utilities/gitsetup/tips
Brad King's avatar
Brad King committed
13 14 15 16 17

# Rebase master by default
git config rebase.stat true
git config branch.master.rebase true

18
# Record the version of this setup so Scripts/pre-commit can check it.
Ben Boeckel's avatar
Ben Boeckel committed
19
SetupForDevelopment_VERSION=4
20
git config hooks.SetupForDevelopment ${SetupForDevelopment_VERSION}