Answers
Here are the answers to the questions given above:
- Use
git pushto publish your changes, and usegit fetchorgit pull(orgit remote update) to get changes from the remote repository. - The
fetchoperation only downloads changes and updates the remote-tracking branches, while thepulloperation also tries to update the current branch withmergeorrebase(if it is configured as tracking some branch in the remote repository). - You can use
git branch -d -rto delete individual remote-tracking branches, orgit remote pruneto delete all stale remote-tracking branches.