OSDN Git Service

Regular updates
authorErik <erikgronwal@users.osdn.me>
Sat, 6 Feb 2021 14:55:04 +0000 (23:55 +0900)
committerErik <erikgronwal@users.osdn.me>
Sat, 6 Feb 2021 14:55:04 +0000 (23:55 +0900)
git-branch.md

index 65b43a0..0057ba9 100644 (file)
@@ -95,6 +95,9 @@ git reset --hard
 ```bash
 git reset --hard $commit_id
 
-# Now push to your branch
+# Now push safely to your branch
+git push --force-with-lease
+
+# Or push brutally to your branch
 git push --force
 ```