[some videos link share] : url(https://drive.google.com/drive/folders/12Eaw1kEeuhPtBPldbO8CSlmsVni_NhH_)
- Create a new folder: student-roster
- Initialize a new Git repository: git init
- Create a new file: students.txt
-
Add the following content to students.txt: Username,Fname,Lname,UGNumber
-
Commit the changes: git add . and git commit -m "Initial commit"
-
Create a new branch for each collaborator: git branch
-
Switch to the new branch: git checkout
-
Add your details to students.txt: Username,Fname,Lname,UGNumber ,,,
-
Commit the changes: git add . and git commit -m "Added details"
-
Push the branch to the remote repository (if set up)
Step 4: Merge changes
- Switch to the main branch: git checkout main
- Merge the changes from each collaborator's branch: git merge
graph TD
A[student-roster/] --> B[students.txt]
| Username | Fname | Lname | UGNumber |
|---|---|---|---|
| johnDoe | John | Doe | 12345 |
| janeDoe | Jane | Doe | 67890 |
graph TD
A[git clone] --> B[git branch]
B --> C[git checkout]
C --> D[git add]
D --> E[edit/modification]
E --> F[git commit]
E --> G[git merge]
G --> F
F --> H[git push]
H --> I[git pull]
- Clone the repository: git clone
- Create a new branch: git branch
- Switch to the new branch: git checkout
- Add your details to students.txt
- Commit the changes: git add . and git commit -m "Added details"
- Push the branch to the remote repository: git push origin
- Create a pull request to merge your branch with the main branch