This will host the bare repo on the UM's AFS space. It can be cloned on the server or locally.Current limitations:
gitis quite old. You'll need to run
scl enable rh-git29 httpd24 -- gitinstead of just
git. If you put the following line in your .zshrc (or the bash equivalent), you can alias
alias git='scl enable rh-git29 httpd24 -- git'
git will run the above, whereas
\git will ignore the alias and run the old version.
Confirm this worked with
git --version and
\git --version. (You may need to re-login first.)
git clone --bare [repo address]
If you've never pushed your git repo up to a server you can clone from, or you are starting a new repo, instead you can init the repo and then add it as the remote.
On the server, create a directory called "[repo name].git". Within it, run:
git init --bare
Finally, locally, run one of (depending on choice of server):
git remote add origin [uniqname]@scs.dsc.umich.edu:[path-to-bare-repo].git git remote add origin [uniqname]@login.itd.umich.edu:[path-to-bare-repo].git git remote add origin [uniqname]@greatlakes.arc.ts.umich.edu:/afs/umich.edu/user/u/n/uniqname/[path-to-bare-repo].git