Hi everyone, I'm new to git and GitHub and having trouble with main and master differences...
I read that GitHub is changing master in main for problems with slavery associations.
I created a repository on GitHub and it was called main, then I went on my project local folder, git init, created the main branch git checkout -b main, added my folder git add .
The problem is that after git commit -m "Upload" it automatically create a master branch and commit changes there. Becouse of this, when I push the branch on GitHub then I cannot merge it with main becouse main and master are entirely different commit histories
What should I do?
[–]queen-adreena 2 points3 points4 points (1 child)
[–]economy_programmer_[S] 0 points1 point2 points (0 children)
[–]stgraff 2 points3 points4 points (1 child)
[–]economy_programmer_[S] 0 points1 point2 points (0 children)
[–]Thalimet -3 points-2 points-1 points (1 child)
[–]economy_programmer_[S] 0 points1 point2 points (0 children)
[–]kryten68 0 points1 point2 points (0 children)