docs(contributing): correct the repo setup, to avoid remote rejection

pull/1/head
winston 2 years ago
parent bd5c12135e
commit 90a466428b
No known key found for this signature in database
GPG Key ID: 3786770EDBC2B481

@ -32,7 +32,7 @@ git remote add template https://github.com/catppuccin/template.git
3. Pull from it: 3. Pull from it:
``` ```
git pull template main --depth=1 git pull template main
``` ```
4. Delete the remote: 4. Delete the remote:
@ -40,12 +40,12 @@ git pull template main --depth=1
git remote remove template 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) git reset $(git commit-tree HEAD^{tree} -m "feat: initial commit")
error: failed to push some refs to 'https://github.com/<user>/<port>.git'
``` ```
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!
&nbsp; &nbsp;

Loading…
Cancel
Save