Challenge 1
Complete the Git command to fetch and integrate remote history.
git --ff-only origin main
Press Ctrl⌘Enter to check your answer
Create a disposable bare repository and two working clones. Publish an initial commit, then create a new remote commit from the second clone. In the first clone, record HEAD and the remote-tracking tip, run an explicit `git pull --ff-only origin main`, and verify that the local branch advances to the fetched commit without creating a merge commit. Then create independent local and remote commits from a common base and compare `git pull --ff-only origin main` with `git pull --no-rebase origin main` in separate disposable repositories. Record which state changes occur in each case and verify that no pull command publishes local commits back to the remote.
Challenge 1
git --ff-only origin main
Press Ctrl⌘Enter to check your answer
Challenge 2
git --no-rebase origin main
Press Ctrl⌘Enter to check your answer
Challenge 3
git
Press Ctrl⌘Enter to check your answer
Challenge 4
git <remote> <refspec>
Press Ctrl⌘Enter to check your answer