gitfiti
gitfiti copied to clipboard
Fatal: invalid refspec 'master'?
It seems when I try to run the bash script in Ubuntu's Terminal, it creates the repo, but then fails at Fatal: invalid refspec 'master'?
.
Can you run git branch -a
and post the result? The script probably needs the default branch name changed from "master" to "main".
- Im going trough the same problem, it keeps on showing fatal: couldn't find remote ref master
- When i ignored the warning and proceed with key, it got pushed to GitHub but i have waited for 3-4 days but nothing showing up. Been trying multiple times with different repo too.
git branch -a showing me as above screenshot. Is there any problem with my git ? Thanks for your help !
It turns out that the local git default is still "master", so the git branch -a
output is right.
Github is now using "main" as the default base branch for new repositories, so gitfiti has been updated to use the new default.
I also moved this repo's base branch to main.
If you run into similar issues, deleting the target repo and re-creating it on github should make it work.
@grabtheskills it looks like your error was different, and is likely an auth problem.
[email protected]: Permission denied (publickey).
you could try deleting the target repo from github and created it again.
you might also want to make sure your name / email as displayed in git config -l
match your github profile, or the commits / pixels wont be attributed to your profile.