How can you track changes made by others in a shared repository?

Tracking changes made by others in a shared repository means regularly fetching updates from the remote without merging them, then inspecting what's new before deciding to integrate it into your own work.

Key Points

Example

Before starting work each morning, a developer runs git fetch and then git log main..origin/main to see exactly which commits teammates pushed overnight, before deciding whether to pull them in.

git fetch
git log main..origin/main --oneline

Interview Tip

A concise interview answer is

I run git fetch regularly to pull down remote updates without merging them, then use git log against the remote-tracking branch to see exactly what's new. Once I know what's changed, I decide when to pull those commits into my own branch.

Last updated: 16 July 2026

Previous question: You made big changes to a file and want to go back to an earlier version without losing your current work. How would you do it?

Next question: Describe a situation where you had to resolve a complicated merge conflict involving multiple files.

More Git - Level II interview questions

All Git - Level II questions