Skip to content

[Git] [remote rejected] shallow update not allowed #6

Description

@unchaptered

Behavior

  1. Expected behavior
  2. Actual behavior
  3. Describe the bug

1. Expected behaviors

~> git clone -b '@1.2.0' --single-branch --depth 1 https://github.com/Boiler-Express/Base-Express.git Base-Express-Layer
~> git remote rm origin
~> git remote rm origin https://github.com/your_name/your_repo.git
~> git branch -m main
~> git push origin main
  • Successfully push

2. Actual behavior

  • Failure

3. Describe the bug

Enumerating objects: 26, done.
Counting objects: 100% (26/26), done.
Delta compression using up to 8 threads
Compressing objects: 100% (23/23), done.
Writing objects: 100% (26/26), 114.42 KiB | 114.42 MiB/s, done.
Total 26 (delta 1), reused 26 (delta 1), pack-reused 0
remote: Resolving deltas: 100% (1/1), done.

To https://github.com/Boiler-Express/Base-Express-Layer.git
 ! [remote rejected] main -> main (shallow update not allowed)
error: failed to push some refs to 'https://github.com/Boiler-Express/Base-Express-Layer.git'

Details

1. Environment

- OS : Windows 10
- Node : 16.15.1
- npm : 8.11.0
- git : 2.34.1

2. Screenshots

If you have some iamges of error, please submit it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingbug-git

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions