Push to remote (general)
- go to the folder
git init
git add .
git commit -m “commit”
git push -u -f origin main
Tips
-u flag add an upstream (tracking) reference to every branch that is pushed. You’ll be able to use
git pull
andgit push
without argument afterward
Warn
-f flag ignores the conflict and force to push the local repo to remote repo. Use it carefully