top of page

Collaboration with Git


Student Workflow

Each student will now perform these steps on their own computer.

ree

Step 1 — Clone Your Repository

💬 Explanation:This copies the instructor’s repository from GitHub to the student’s local computer.

ree

Step 2 — Create Their Own Branch

Each student should create a branch using your name, for example:

git branch feature-sharon
git switch feature-sharon

Explanation:They create their own workspace (branch) so they don’t overwrite others’ code.


Step 3 — Update the File

Open the file students_task.py and add one line like this:

print("Hello from Sharon!")

Each student replaces “Sharon” with their own name.

Step 4 — Stage and Commit Changes

git add students_task.py
git commit -m "Added my name print statement"

Explanation:

  • git add puts the changes into the staging area.

  • git commit saves their work in the branch history.


Step 5 — Push Their Branch to GitHub

git push origin feature-sharon

Explanation:This uploads the student’s branch to your GitHub repository under their own branch name.



Each branch represents a student’s submission!

$50

Product Title

Product Details goes here with the simple product description and more information can be seen by clicking the see more button. Product Details goes here with the simple product description and more information can be seen by clicking the see more button

$50

Product Title

Product Details goes here with the simple product description and more information can be seen by clicking the see more button. Product Details goes here with the simple product description and more information can be seen by clicking the see more button.

$50

Product Title

Product Details goes here with the simple product description and more information can be seen by clicking the see more button. Product Details goes here with the simple product description and more information can be seen by clicking the see more button.

Recommended Products For This Post
 
 
 

Recent Posts

See All
Containerization

Docker Zoo to understand containerization Run 3 tiny web apps (Cat, Dog, Cow) in separate containers  and see how containerization isolates them. Folder setup Create a folder for your project: md dock

 
 
 

Comments


© 2023 by newittrendzzz.com 

  • Facebook
  • Twitter
  • Instagram
bottom of page