git
Block 3.2: Synchronizing Changes
You first pull
the latest changes from the remote and then push
your own changes
git pull
git pull
upstream
)
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 pull
git pull
for the first time, you will need to choose a default merge strategygit push
git push
pull
you need to pull
againgit-intro-example
git remote add origin <URL>
git push -u origin main
git-intro-example
repository
library.txt
Any Questions?