https-push.md 1.56 KB
Newer Older
Stefan Dierauf's avatar
Stefan Dierauf committed
1 2
# HTTPS Push tutorial

Jason Howe's avatar
Jason Howe committed
3
### HTTPS Push is not intended for regular use, but in a worst case senario, when you're stuck working on Grandma's Windows 98 box and you don't have your ssh keys.
Jason Howe's avatar
Jason Howe committed
4

Stefan Dierauf's avatar
Stefan Dierauf committed
5 6
This guide will walk you through how to set up HTTPS push on UW CSE Gitlab. Due to how our authentication system works with gitlab's auth system, there is one extra step required before HTTPS push will work.

Stefan Dierauf's avatar
Stefan Dierauf committed
7
1. [Log in to gitlab](https://gitlab.cs.washington.edu/users/sign_in) if you haven't yet. This will create your gitlab account.
Stefan Dierauf's avatar
Stefan Dierauf committed
8

Stefan Dierauf's avatar
Stefan Dierauf committed
9
2. Log out of gitlab by clicking the `logout` button next to your profile picture in the upper right corner of the gitlab UI
Stefan Dierauf's avatar
Stefan Dierauf committed
10

11
3. Navigate back to the [sign in page](https://gitlab.cs.washington.edu/users/sign_in)  if you're not there already, and click the "a local gitlab password" link under the login buttons.
Stefan Dierauf's avatar
Stefan Dierauf committed
12

Stefan Dierauf's avatar
Stefan Dierauf committed
13 14 15
4. You should now get an email asking you to reset your password. Click on the link you receive in the email, and set your new local gitlab password. **This password is separate for your NetID login password and will not change your NetID password. It is only for Gitlab's HTTPS push**

5. Now when you clone a repo via https:
Stefan Dierauf's avatar
Stefan Dierauf committed
16
	- Your username if you use CSE NetID to login is `csenetid.cs.wasington.edu`
Stefan Dierauf's avatar
Stefan Dierauf committed
17 18
	- Your username if you use UW NetID to login is `uwnetid.washington.edu`
	- Your password is whatever password you just set. 
Stefan Dierauf's avatar
Stefan Dierauf committed
19 20


Stefan Dierauf's avatar
Stefan Dierauf committed
21 22
### Pros and Cons of HTTPS push vs SSH

23
Setting up https is easier than setting up your SSH key, however you will need to put in your username and password to authenticate with gitlab.cs every time you interact with the origin