From b617a92a28decb88c11d6255ca1df3ec3f687ba6 Mon Sep 17 00:00:00 2001 From: MrPyriteMiner Date: Sun, 15 Sep 2024 11:59:47 +0200 Subject: [PATCH] Added some useful info about branches and force pushes --- READMEINSTEAD.md | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/READMEINSTEAD.md b/READMEINSTEAD.md index f3a4e32..9e24cd7 100644 --- a/READMEINSTEAD.md +++ b/READMEINSTEAD.md @@ -10,4 +10,13 @@ continue with "git rebase --continue" then you can pmossibly change the commit message then you can push git log -exists as a log of what happened \ No newline at end of file +exists as a log of what happened + +if you're on another branch, you can get the changes from main by using this command: +git pull -r origin (Branch) +e.g. git pull -r origin main +Then you can pull that and fix the conflicts to then merge them again. + +how to force push (dark arts, don't do that on master branch, ever) +git push -f +--> this says "No, my local history is correct. Delete everything else"