Using
glab cli
Installing glab
First, install
Homebrew
using the one-liner on the frontpage.
Then, install glab using brew install glab
Setup glab
Run glab auth login and select
GitLab Self-hosted Instance
Enter the following details:
Gitlab hostname: git.doit.wisc.edu
Press enter to use
git.doit.wisc.edu as the API hostname
For your authentication type, select Token
Similar to setting up the cs400 cli, create a new gitlab
token at
git.doit.wisc.edu/-/profile/personal_access_tokens
and paste it when prompted.
Choose HTTPS as the Git protocol and the API protocol
glab config set --global host git.doit.wisc.edu
And you're done!
Using glab
-
Run
glab repo cloneto download a repo to your machineEg.
glab repo clone https://git.doit.wisc.edu/cdis/cs/courses/cs400/202309/students/PPMILTON/P25.Hashtable -
Run
glab repo forkto create a new fork of an already existing repositoryEg.
glab repo fork https://git.doit.wisc.edu/cdis/cs/courses/cs400/202309/students/PPMILTON/P25.Hashtable -
Run
glab repo createto create a new repo and automatically track remotes