Collaboration with Git
- Sharon Rajendra Manmothe

- 12 hours ago
- 1 min read
Student Workflow
Each student will now perform these steps on their own computer.

Step 1 — Clone Your Repository
💬 Explanation:This copies the instructor’s repository from GitHub to the student’s local computer.

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.



Comments