Version control
- Due 26 Apr 2023 by 19:00
- Points 1
- Submitting a website url
The purpose of this lab is to setup and get acquainted with the KTH github server and a common workflow associated with projects on github.
Consider the following scenario: you have contributions to make to an open-source project. It now contains a history of the example script from the first lecture. You may see it in the browser at the link
https://gits-15.sys.kth.se/BB1000/git-2023-04-19
On git hosting sites such as github, gitlab, bitbucket you have two address forms for a repository
- http: https://gits-15.sys.kth.se/BB1000/git-2023-04-19
- ssh: git@gits-15.sys.kth.se:BB1000/git-2023-04-19
On the KTH git server you can use the first form for browsing, but to download/upload content you have to use the second form, therefore you have to learn about ssh and install ssh-keys
Installation
* Creating and uploading an ssh key to the students KTH github: see instructions.
Assignment
* Open a webbrowser at the KTH github and create a fork in the web interface
* On your local machine: clone your fork, it will by default have the label origin
* Navigate to the project folder on the command line with "cd git-2023-04-19"
* Create and checkout a local branch with a name "devel"
* Include a line in the booklist.txt file with a book recommendation
* When done push the changes to your fork
* Make a pull request in the web interface
For more details consider lecture material or e.g. Github standard pull and request workflow