Git Services
The SCDF provides a Gitea site for use by experiments.
Web Interface¶
You can reach Gitea at https://git.racf.bnl.gov/gitea/explore/organizations
Notification Preferences¶
By default, you will receive emails for any repository you are Watching, and you will automatically Watch repositories you commit to.
To Watch any repository, visit the repository's webpage and click "Watch" on the top right.
To opt out of emails, visit your account settings page: https://git.racf.bnl.gov/gitea/user/settings/account
Git Client¶
You can install a Git client at https://git-scm.com/install
Setting Up¶
Set your name and email using following commands:
git config --global user.name "FirstName LastName"
git config --global user.email "username@bnl.gov"
To save your password in a keyring so you don't have to retype it:
- Windows:
git config --global credential.helper wincred - Mac:
git config --global credential.helper osxkeychain - Linux:
git config --global credential.helper libsecret(requiresgit-credential-libsecretpackage) - Main page: https://git-scm.com/doc/credential-helpers
You can also enable colored CLI output with:
git config --global color.ui auto
All git configurations are stored in ~/.gitconfig
Cloning Repos over SSH¶
You need to configure your SSH client (which your Git client uses) to use our gateways.
In your ~/.ssh/config file, add:
Once this is done, you can visit any repo page, and click Code -> SSH, and run git clone <URL>.
SSH Keys¶
Your Gitea account will automatically pull SSH keys it finds in LDAP. You can manage your Gitea keys at https://git.racf.bnl.gov/gitea/user/settings/keys.
You can manage your LDAP keys here: https://useraccount.sdcc.bnl.gov/ssh-key.
Cloning Repos over HTTPS¶
Although less preferred, you can still clone any repo by visiting any repo page, click Code -> HTTPS, and running git clone <URL>.
This will prompt your Kerberos username/password to authenticate, unless you set up a credential helper (see "Setting Up" above).