0% found this document useful (0 votes)
0 views

Git and GitHub

Uploaded by

Paul Jones
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views

Git and GitHub

Uploaded by

Paul Jones
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

University of Sunderland

Msc Computer Systems and Management CSTM65 Software Engineering Principles

Introduction to Git and GitHub

Task 1 – Create a new repo remotely, clone it into the local machine, add a file and push
the new file to the remote repo.
Step 1: Create a Repo in GitHub. This Repo will be named ‘Masters_Degree’ and will be
public.

Fig 1. New Repo created inside GitHub


Step 2: Configure Git on the local machine. This is done via the Git Config commands.

Step 3: Clone the Repo down into the local machine in a specific folder:

Submitted by: Paul Jones


Student Number: bh83dq 16/10/2020
University of Sunderland
Msc Computer Systems and Management CSTM65 Software Engineering Principles

Step 4: Create a file locally and push it up to the GitHub Repo:

Submitted by: Paul Jones


Student Number: bh83dq 16/10/2020
University of Sunderland
Msc Computer Systems and Management CSTM65 Software Engineering Principles

Step 5: Check the push was successful on GitHub:

Task 2 – Create a new repo locally, clone it into the local machine, add a file and push the
new file to the remote repo.
Step 1: Create the new folder and initialise it as a Git Repo with ‘git init’ command:

Step 2: Create Repository on GitHub with same name:

Submitted by: Paul Jones


Student Number: bh83dq 16/10/2020
University of Sunderland
Msc Computer Systems and Management CSTM65 Software Engineering Principles

Step 3: Add the remote origin, set the branch to main and push the initial commit:

Step 4: Confirm the remote repository has been updated:

Submitted by: Paul Jones


Student Number: bh83dq 16/10/2020

You might also like