Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✖ Could not create an empty Git repository, see debug logs with --verbose #43545

Closed
code-hasaki opened this issue Mar 19, 2024 · 2 comments
Closed
Labels

Comments

@code-hasaki
Copy link

Description

npx react-native@latest init AwesomeProject
git init log not auto commit
i can commit the init log manually, project work well.

Steps to reproduce

npx react-native@latest init AwesomeProject or npx react-native@latest init AwesomeProject --verbose

React Native Version

0.73.6

Affected Platforms

Runtime - Android

Output of npx react-native info

System:
OS: Windows 10 10.0.18363
CPU: (6) x64 Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
Memory: 8.64 GB / 15.87 GB
Binaries:
Node:
version: 20.11.1
path: C:\Program Files\nodejs\node.EXE
Yarn:
version: 4.1.1
path: C:\Program Files\nodejs\yarn.CMD
npm:
version: 10.2.4
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK:
Android NDK:
Windows SDK:
AllowDevelopmentWithoutDevLicense: Disabled
AllowAllTrustedApps: Enabled
Versions:
- 10.0.18362.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.8.34511.84 (Visual Studio Community 2022)
Languages:
Java: 17.0.10
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found

Stacktrace or Logs

npx react-native@latest init AwesomeProject 
✖ Could not create an empty Git repository, see debug logs with --verbose

npx react-native@latest init AwesomeProject --verbose
debug Error: Command failed with exit code 128: git branch -M main
error: refname refs/heads/master not found
fatal: Branch rename failed

Reproducer

npx react-native@latest init AwesomeProject

Screenshots and Videos

npx react-native@latest init AwesomeProject
image

npx react-native@latest init AwesomeProject --verbose
image

Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@github-actions github-actions bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Mar 19, 2024
@cortinico
Copy link
Contributor

Hi @code-hasaki
Thanks for reporting this issue.

It seems like this issue is actually unrelated to React Native core but related to the community CLI. Please open this issue against this other repository:

https://github.com/react-native-community/cli/issues

@cortinico cortinico added 💻CLI and removed Needs: Triage 🔍 Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Mar 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants