Firstly I commited with master branch now I am in main branch and unable to change to master branch. Moreover if I tried to commit to my repo through main branch the following errors it shows:-
$ git push --set-upstream https://github.com/manvith22/Evernote-clone.git main
To https://github.com/manvith22/Evernote-clone.git
! [rejected] main -> main (fetch first)
error: failed to push some refs to 'https://github.com/manvith22/Evernote-clone.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
abc@MA MINGW64 ~/react-redux-hooks (main)
$ git pull <remote> master:dev
bash: remote: No such file or directory
abc@MA MINGW64 ~/react-redux-hooks (main)
$ git pull <main> master:dev
bash: main: No such file or directory
abc@MA MINGW64 ~/react-redux-hooks (main)
$ git pull <evernote> master:dev
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=<remote>/<branch> main