SD500 - Collaborative Git
Practice with all the local repository commands from the slides:
git init
git status
git diff
- Create
.gitignore
file, and notice how it works git add
git commit
git log
git tag
git branch
git switch
git merge
- Create a conflict and solve the conflict
Practice with all the remote repository commands from the slides:
- Create a remote repository
git clone
git remote
git push
git fetch
git pull
Practice with all the third party repositories commands from the slides:
Assume we are working with the following upstream
- Star the repository
- Watch the repository for any changes
- Fork the repository
- Clone your forked repository into your local machine
- Create a new topic branch using
studentId-studentName
format, For example: 610001-JohnSmith - Switch to your new branch
- Add a new file with your fullname, example:
JohnSmith.ts
- Commit the changes
- Merge your
studentId-studentName
branch with the main branch - Push your changes to your remote repo
- Create a new Pull Request to the upstream repo
What to submit?
Write down all of the commands you tried in a new commands.md
file, stage and push it.
Optional
Get familiar with the Markdown syntax (Headers, Bold, Code, Unordered List, Links)