Answers
Here are the answers to the questions given above:
- Use
git push
to publish your changes, and usegit fetch
orgit pull
(orgit remote update
) to get changes from the remote repository. - The
fetch
operation only downloads changes and updates the remote-tracking branches, while thepull
operation also tries to update the current branch withmerge
orrebase
(if it is configured as tracking some branch in the remote repository). - You can use
git branch -d -r
to delete individual remote-tracking branches, orgit remote prune
to delete all stale remote-tracking branches.