Background: experience with git - just a couple of weeks, mostly used it to manage projects on my local machine.
I have this remote repo.
Currently it has 1 branch called main.
Also I have corresponding local repo with branch master which is currently 1 commit ahead.
Here is some related info from bash:
UserName (master) freeCodeCampRegistrationForm
$ git log --oneline --graph
* 058bada (HEAD -> master) additional styling of submit button
* b44a026 (origin/master) set relative font-size for body, minsize for inputs
* 22e169e minsize for clickable inputs
* ec6e6a9 label and input adjustments
* 52dd5e2 unadjusted radio-buttons:solved, comments updated
* 0cc3817 refactor body and form size
* 6a8ee2c Merge remote-tracking branch 'origin/main'
|\
| * c7940f8 (origin/main) Initial commit
* 346fbb1 Update TODO-s
* 5822704 Adjust CSSBOX properties
$ git branch --all
* master
remotes/origin/main
remotes/origin/master
$ git remote -v
origin https://github.com/AndreyDmitriev39r/freeCodeCampSurveyForm.git (fetch)
origin https://github.com/AndreyDmitriev39r/freeCodeCampSurveyForm.git (push)
So if I will run ‘git push origin master’ rightnow, there will be two branches on remote repo: main and master(I am pretty sure that’s the case, I did such thing couple of times)
My question: what if I rename remote branch main and call it master first(using GitHub website), and then run ‘git push origin master’?
It will be 2 confusing branches with the same name master? Or something else?
I kind of want to structure this project to look like the other one:
UserName (initial-css) freeCodeCampTributePage
$ git log --oneline --graph -a
* 20f4a50 (HEAD -> initial-css) set font and color scheme
* d6b1440 normalize css
* 2222e67 (master) added references
* 8fa2e56 add subject info
* 40fe233 Chose subject of the page
* 5dfba9f (origin/master) created README file
* 9f80d93 TODO list
* 7bb5311 set meta tags
* b37c155 empty css
* 1e0c3bd Initial commit
UserName (initial-css) freeCodeCampTributePage
$ git branch
* initial-css
master
UserName(initial-css) freeCodeCampTributePage
$ git branch --all
* initial-css
master
remotes/origin/master