From 8eb026b445cb30ffb21ddc756e48049645dc4ee6 Mon Sep 17 00:00:00 2001
From: autistic-symposium-helpers
<138340846+autistic-symposium-helpers@users.noreply.github.com>
Date: Tue, 15 Oct 2024 10:02:32 +0900
Subject: [PATCH] (:
---
git/README.md | 44 ++++++++++++++++++++++++++++++++++++--------
1 file changed, 36 insertions(+), 8 deletions(-)
diff --git a/git/README.md b/git/README.md
index 9ce1977..43ef409 100644
--- a/git/README.md
+++ b/git/README.md
@@ -2,41 +2,43 @@
+---
+
### reset all commits
-#### check out to a temporary branch:
+##### check out to a temporary branch:
```
git checkout --orphan TEMP_BRANCH
```
-#### add all the files:
+##### add all the files:
```
git add -A
```
-#### commit the changes:
+##### commit the changes:
```
-git commit -am "🛹👾"
+git commit -am "(:"
```
-#### delete the old branch:
+##### delete the old branch:
```
git branch -D main
```
-#### rename the temporary branch to `main`:
+##### rename the temporary branch to `main`:
```
git branch -m main
```
-#### finally, force update to our repository:
+##### finally, force update to our repository:
```
git push -f origin main
@@ -44,6 +46,32 @@ git push -f origin main
+---
+
+### reverting back to an older commit
+
+
+
+```shell
+git reset --hard HEAD~N
+```
+
+or
+
+```shell
+git reset --hard COMMIT
+```
+
+and then
+
+```shell
+git push origin master --force
+```
+
+
+
+
+
---
### delete all local branches
@@ -62,7 +90,7 @@ git branch | grep -v "main" | xargs git branch -D
-#### error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
+##### error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
```shell
git config http.postBuffer 524288000