DEV Community

Discussion on: Git for Developers: Common Errors and How to Resolve Them 💻🔍

Collapse
 
villelmo profile image
William Torrez • Edited
git checkout main
Enter fullscreen mode Exit fullscreen mode

fatal: A branch named 'main' already exists.

Get the same problem

git push origin master:master main:main
Enter fullscreen mode Exit fullscreen mode

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.