chore(snippets): dump commands for future reference

This commit is contained in:
Michele Cereda
2024-07-19 18:49:12 +02:00
parent b7e27d994c
commit 91d8bc9cff
4 changed files with 20 additions and 5 deletions

View File

@@ -66,3 +66,12 @@ git symbolic-ref 'refs/remotes/origin/HEAD' 'refs/remotes/origin/main'
# delete the master branch on the remote
git push origin --delete 'master'
# create patches from the last commit
git format-patch -n HEAD^
git format-patch HEAD^ -o './patchfile.patch'
git format-patch HEAD~1 --stdout
# create patches from specific commits
git format-patch -1 '3918a1d036e74d47a5c830e4bbabba6f507162b1'