Challenge 1
Complete the Git command to publish a local ref.
git origin main
Press Ctrl⌘Enter to check your answer
Create a disposable bare repository and a working clone. Make a local commit, record the local `HEAD`, the remote `refs/heads/main`, and the local `refs/remotes/origin/main`, then run `git push origin main`. Verify the remote ref and transferred commit object, verify the local HEAD did not move, and observe the local remote-tracking ref after the successful push. Next, create a local `topic` branch and push it with `git push origin topic`; verify that the remote topic ref exists. Finally, create genuine divergence in two clones and verify that an ordinary push is rejected without changing the remote tip. Repeat the publication with `--dry-run` first and confirm that the remote remains unchanged until the real push.
Challenge 1
git origin main
Press Ctrl⌘Enter to check your answer
Challenge 2
git origin topic
Press Ctrl⌘Enter to check your answer
Challenge 3
git
Press Ctrl⌘Enter to check your answer
Challenge 4
git origin main:review
Press Ctrl⌘Enter to check your answer