You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dolt reset --soft should move HEAD to the destination address, but the WORKING and STAGED heads should stay the same. Currently the STAGED head is also moved to the destination address:
> dolt init
Successfully initialized dolt data repository.
> dolt sql -q "Create table xy (x int primary key, y int)"
> dolt add xy
> dolt commit -m "add xy"
commit u4mp02cb4freimq2217fus2pig558abp (HEAD -> main)
Author: Max Hoffman <[email protected]>
Date: Tue Nov 12 10:16:45 -0800 2024
add xy
> dolt reset --soft head~
> dolt status
On branch main
Untracked tables:
(use "dolt add <table>" to include in what will be committed)
new table: xy
The text was updated successfully, but these errors were encountered:
dolt reset --soft
should move HEAD to the destination address, but the WORKING and STAGED heads should stay the same. Currently the STAGED head is also moved to the destination address:The text was updated successfully, but these errors were encountered: