FunctionRacerProblemsRace

Move the Edits

MediumGita shell script

You edited app.py on main, but the edit belongs on the branch feature, where app.py is not the same. Git refuses to switch while the edit is in the way. Take the edit over to feature without committing it.

Example 1

starts as
* 5623676 (feature) use os
* d5010ce (HEAD -> main) first commit
changed, not staged: app.py
ends as
on branch: feature
staged: nothing
changed, not staged: app.py
untracked: nothing
app.py:
  import os

  def main():
      pass

  main()  # run it
stashes left: 0

Constraints

Race itor take your time

Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.

More Git problems