Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions content/cheat-sheet/_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ <h3>Tell Git to forget about a file without deleting it:</h3>
</div>
<div class="item">
<h3>Unstage one file:</h3>
<code>git reset &lt;file&gt;</code>
<code>git restore --staged &lt;file&gt;</code>
</div>
<div class="item">
<h3>Unstage everything:</h3>
<code>git reset</code>
<code>git restore --staged .</code>
</div>
<div class="item">
<h3>Check what you added:</h3>
Expand Down Expand Up @@ -224,7 +224,7 @@ <h3>Delete all staged and unstaged changes to one file:</h3>
</div>
<div class="item">
<h3>Delete all staged and unstaged changes:</h3>
<code>git reset --hard</code>
<code>git restore --staged --worktree .</code>
</div>
<div class="item">
<h3>Delete untracked files:</h3>
Expand Down
Loading