diff options
| author | srdusr <[email protected]> | 2023-07-19 17:04:23 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2023-07-19 17:04:23 +0200 |
| commit | 2de94da70e28973bab7f23af8868b8efe2813f0c (patch) | |
| tree | a9989cd6a691561b7fab398cde29c8201fac4842 /tools/git.md | |
| parent | 7be4265ccc3b4bf48746c8340c5dd587179e5b59 (diff) | |
| download | notes-2de94da70e28973bab7f23af8868b8efe2813f0c.tar.gz notes-2de94da70e28973bab7f23af8868b8efe2813f0c.zip | |
Info on pushing to main
Diffstat (limited to 'tools/git.md')
| -rw-r--r-- | tools/git.md | 3 |
1 files changed, 3 insertions, 0 deletions
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.` |