From 2de94da70e28973bab7f23af8868b8efe2813f0c Mon Sep 17 00:00:00 2001 From: srdusr Date: Wed, 19 Jul 2023 17:04:23 +0200 Subject: Info on pushing to main --- tools/git.md | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') diff --git a/tools/git.md b/tools/git.md index 52a4ba2..13b0d17 100644 --- a/tools/git.md +++ b/tools/git.md @@ -48,6 +48,9 @@ ```bash $ config checkout ``` +config push --set-upstream origin main +git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/master +git fetch origin master:refs/remotes/origin/master #### Use git subtree to sync other repos into dotfiles 1. First make sure dotfiles is up-to date or commit/push/reset all changes otherwise this error message will show: `Working tree has modifications. Cannot add.` -- cgit v1.2.3