git config --global user.email "evermoen@gmail.com"
git config --global user.name "Eddy Vermoen"
- On GitHub, create a new repository
- In local project folder, execute:
git init
git add --all
git commit -a -m "First commit"
git remote add origin https://github.com/ben-eddy74/new-project
git branch --set-upstream-to=origin/main main
git pull --allow-unrelated-histories
git push -u origin main
- In case a merge conflict occurs, open the folder with VSCode and resolve the conflict
- In case the current branch is behind, add -f to the git push command