Practice

Publish After a Rejected Push

RemotesadvancedPractice

Publish After a Rejected Push

You committed Add humidity on main and tried to publish it, but origin refused: a teammate had already pushed Add wind speed to the same branch. The origin here is GitDojo's simulated remote.

Your mission

Get both commits onto origin's main, with your main and origin's at the same commit, and no merge commit: history should stay a straight line.

No steps and no hints here: GitDojo checks the repository after every command and edit, whichever way you get there.

Setting up the repository…

Another task

Want the guided version? Sync with a Teammate's Push

Preparing your workspace…

Repository Graph

Click a commit to inspect it

0 commits

Working Tree

Not a Git repository yet

No unstaged changes

Your working tree matches the staging area.

Staging Area

Files prepared for the next commit

No staged changes

Use git add to prepare files for your next commit.

Repository

Committed history

No commits yet

Use git commit to record staged changes.