git
Block 2.1: Collaboration & Pull Requests
Background: https://unsplash.com/photos/EOQhsfFBhRk
origin
clone
a repository, this remote is already linkedWhen you want to add an existing repository to github, you will have to add the remote yourself
You first pull
the latest changes from the remote and then push
your own changes
git pull
git pull
git pull
git pull
really does two things heregit fetch
to fetch the latest changes and then git merge <remote>/branch
to merge themgit fetch
will always fetch the latest changes without doing anything with them (which can be useful)git push
git push
pull
you need to pull
againgit-example
repogit remote -h
to learn about possible commandsgit-example-2
)Overview of the pull requests page in a GitHub repository
Repository: https://github.com/CorrelAid/datenguideR
View of a single pull request on GitHub
Repository: https://github.com/CorrelAid/datenguideR
Right now, the VSCode GitHub repository has >5000 issues and almost 400 PRs
Repository: https://github.com/microsoft/vscode
feature/vegan
git status
Any Questions?