mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-10 06:04:21 +00:00
docs(contributing): correct the repo setup, to avoid remote rejection
This commit is contained in:
parent
bd5c12135e
commit
90a466428b
1 changed files with 5 additions and 5 deletions
|
@ -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/<user>/<port>.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!
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue