From 90a466428b3b19bc9884b2b07279074476d94f37 Mon Sep 17 00:00:00 2001 From: winston Date: Tue, 30 Aug 2022 04:24:34 +0200 Subject: [PATCH] docs(contributing): correct the repo setup, to avoid remote rejection --- docs/contributing.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/contributing.md b/docs/contributing.md index 9f283ac..a7e143e 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -32,7 +32,7 @@ git remote add template https://github.com/catppuccin/template.git 3. Pull from it: ``` -git pull template main --depth=1 +git pull template main ``` 4. Delete the remote: @@ -40,12 +40,12 @@ git pull template main --depth=1 git remote remove template ``` -5. When pushing, you might get the error message: +5. Make the template its own repository by running ``` -! [remote rejected] main -> main (shallow update not allowed) -error: failed to push some refs to 'https://github.com//.git' +git reset $(git commit-tree HEAD^{tree} -m "feat: initial commit") ``` -To fix it, please use `git push --force` on the first push to your user repository. + +6. Set up the rest of your port, and push it to your user repository!