Here are the steps to push one of your repos to Gitlab. The following example assumes you will be pushing your Project 3 repo, but the steps are the same for any repo.
- Sign in to Github.
- Sign in to Gitlab using your Github account.
- Create a new project (i.e., repo):
- Click Create a Project or New Project
- Name: 281-p3
- Visibility Level: Private
- Do not initialize with a README (you will be pushing your p3 repo to Gitlab)
- You won’t be able to pull or push project code via HTTPS until you set a password on your account:
Choose Password in left navigation
- Click, Copy URL to clipboard
- Start your shell, and cd to 281/projects/p3-userName/
- Add a new remote named, gitlab
git remote add gitlab https://gitlab.com/userName/281-p3.git
git remote -v - Push master branch to Gitlab; reload remote repo to verify
- Push all other branches to Gitlab
That’s it. Repeat for repos, p1, p2, and p4.