Tutorial on using Git for assignment
Автор: Azhar Uddin Molla
Загружено: 2020-06-04
Просмотров: 620
Описание:
Using Git for the class assignments
1. Prerequisites
Before you can do the steps in Step 2, you will need to complete all the following:
Sign up for a GitLab account and create a project called “cs-251-summer-2020”. Follow instructions already shared by Prof. Schmidt.
Sign up for a GitHub account at github.com. You do not need to make a new account if you already have one.
2. Generate and add ssh key to both GitHub and GitLab
If you have not already added SSH keys to GitHub and GitLab, follow the steps below:
Open a PowerShell (for Windows) or a Terminal (for OSX)
Generate RSA SSH keys using command:
ssh-keygen -t rsa -b 2048
Copy public key using command:
pbcopy Shift+, ~/.ssh/id_rsa.pub (for OSX. Type Shift+, Youtube does not allow angled brackets)
cat ~/.ssh/id_rsa.pub (for Windows)
Add the key to GitLab (https://gitlab.com/profile/keys) and GitHub (https://github.com/settings/keys)
Verify:
ssh -T [email protected]
3. Clone read only assignments from GitHub to your GitLab project
Make sure that you already have created GitLab repository called “cs-251-summer-2020”.
Clone your GitLab repository:
git clone [email protected]:mollaa/cs-251-summer-2020.git (use your own SSH clone link)
Change directory into your working folder:
cd CS-251-summer-2020
Update from read-only GitHub repository:
git remote add skeletons [email protected]:douglascraigschmidt/CS251.git
Get current version:
git pull skeletons master
Commit changes:
git commit -m “initial commit”
Send changes to GitLab repository:
git push origin master
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: