Run ❯
Get your
own
website
❯
Run Code
Ctrl+Alt+R
Change Orientation
Ctrl+Alt+O
Change Theme
Ctrl+Alt+D
Change Language
Go to Spaces
Ctrl+Alt+P
# Set up a repository, save the last commit as a patch file, then undo the commit git init -q echo "
Hello world!
" > index.html git add index.html git commit -q -m "First commit" echo "
Some change
" >> index.html git commit -q -am "some change" git format-patch -1 HEAD git reset -q --hard HEAD~1 # Apply the patch git apply 0001-some-change.patch # Undo the patch, then check the status git apply -R 0001-some-change.patch git status
0001-some-change.patch
On branch main
Untracked files:
(use "git add <file>..." to include in what will be committed)
0001-some-change.patch
nothing added to commit but untracked files present (use "git add" to track)