↗Git Impact
READ-ONLY PREVIEWsample-project / command preview
Know what changes.
Before you run it.
Git ran this command in a temporary sandbox. Your source repository was left unchanged. Review the effects on each part of your repository below.
git reset --hard HEAD~1
3staged files change
4files on disk change
1commits leave history
Staging area
The versions staged for your next commit.
src/draft.pydeleted
--- before/src/draft.py +++ after/src/draft.py @@ -1,2 +0,0 @@ -# Staged work that has never been committed -DRAFT_LIMIT = 25
src/export.pydeleted
--- before/src/export.py +++ after/src/export.py @@ -1,2 +0,0 @@ -def export(invoice): - return str(invoice)
src/invoice.pymodified
--- before/src/invoice.py +++ after/src/invoice.py @@ -1,2 +1,2 @@ -def total(items, tax=0.17): - return round(sum(items) * (1 + tax), 2) +def total(items): + return sum(items)
Working tree
The files on disk, including untracked obstructions.
README.mdmodified
--- before/README.md +++ after/README.md @@ -1,3 +1,3 @@ # Invoice service -Draft deployment instructions, not staged yet. +A tiny demonstration project.
src/draft.pydeleted
--- before/src/draft.py +++ after/src/draft.py @@ -1,2 +0,0 @@ -# Staged work that has never been committed -DRAFT_LIMIT = 25
src/export.pydeleted
--- before/src/export.py +++ after/src/export.py @@ -1,2 +0,0 @@ -def export(invoice): - return str(invoice)
src/invoice.pymodified
--- before/src/invoice.py +++ after/src/invoice.py @@ -1,3 +1,2 @@ -def total(items, tax=0.18): - # This newer version is not staged yet - return round(sum(items) * (1 + tax), 2) +def total(items): + return sum(items)
Current history
These commits leave this branch’s history. Other refs or the reflog may retain them.
1dca9cb7Add export and round invoice totals