Skip to main content

Using GitLab on Nero is the suggested Stanford location for all things GitLab.

Discover Stanford-related projects, groups and snippets. Share your projects with others.

Setting up (GitLab) access on Nero

Stanford GitLab uses two-factor authentication.

As a result, you need an access token on Nero to authenticate to

  1. In a web browser, visit’s Personal Access Token page.
  2. Fill in ‘Add a personal access token’, select ‘api’ for the level of access.
    • Press the button ‘Create personal access token’
    • The field Your New Personal Access Token will appear at the top of the page. Copy this token to a secure location on your laptop - e.g. somewhere where you store your passwords. You will need this to log on. Do not put this in your git repo or put it in a public location!
    • At any point in the future if you want to get rid of this, you can just click ‘revoke’ next to the name of the token.
  3. Now, try testing your token on Nero. Open up Jupyter on Nero by visiting
    • Click on Terminal to start a Terminal session.
    • Make sure you are in your home directory or a directory within home (not /share/).
    • Create a repo or fork on
    • Type in: git clone<sunet>/repoName. If you have a git repository on, this makes a copy of your forked git repository on Nero.
    • Fill in your Stanford username and the access token you created (do not use your Stanford password).
    • This should create a new directory on Nero with a copy of your repo.

Other GitLab Tips

The first time you push (git push origin <branch_name>) to, you need to set your global git config.

  Perform the following commands from Terminal:
     + `git config --global <your_name>`
     + `git config --global <your_email>`
  - You will need to use the access token again every time you push.

Special thanks to Data Science for Social Good (DSSG) for assisting with these instructions!

Feel free to contact us for more details or if you have questions.

What about cloning GitHub Repositories?

Yes, you can clone GitHub repos onto Nero. Nero does not allow SSH use with GitHub. If it is a public repo, you must use HTTPS.


git clone

If it is a private repo that requires you to sign in, you must set up a GitHub personal access token.