Bring Back the File
The latest commit deleted rates.csv, and the file is still needed. Bring it back exactly as it was just before that commit, and commit it with the message bring back rates.csv.
Example 1
starts as
* 87d054c (HEAD -> main) drop the old rates * 11bcef6 add notes * 77760fa add the rates nothing to commit
ends as
commits, newest first: bring back rates.csv drop the old rates add notes add the rates rates.csv: usd,1.0 eur,0.9 staged: nothing changed, not staged: nothing untracked: nothing
Constraints
- 2 to 5 commits
- The latest commit may have changed another file as well: that change stays
Write it in your browser, against the clock. The model script, with a note on each command it uses, comes after.
More Git problems
- Drop the Last TwoMedium
- Get the New WorkMedium
- Move the EditsMedium
- Off the Wrong BranchMedium
- Only on the BranchMedium
- Pick the LatestMedium
- Publish the BranchMedium
- Settle the ConflictMedium