cd existing_folder
git init
git remote add origin https://gitlab.com/abc.git
git add .
git commit -m "Initial commit"
git push -u origin master
git remote add origin git@github.com:Deznic/game2.git
git branch -M main
git push -u origin main
git remote add origin https://github.com/KING-SAMM/BlogXAPI.git
git branch -M main
git push -u origin main
git init
# Optional: create branch
git checkout -b branch_name
git add .
git commit -m "Adds existing project to GitHub remote repository"
git remote add origin https://github.com/username/example-project.git
git pull --rebase origin main
# Resolve merge conflicts if needed
git push origin main
git remote add origin https://github.com/dollarkid1/walletapp-with-SpringBoot-.git
git branch -M main
git push -u origin main
git remote add origin git@github.com:betaluis/linux-config.git
git branch -M master
git push -u origin master
git remote add origin <remote repository URL>
git remote add origin git@github.com:name/project.git
git branch -M main
git push -u origin main
cd myapp
git remote rename origin old-origin
git remote add origin https://github.com/myname/myapp.git
git push -u origin --all
git push -u origin --tags
cd existing_repo
git remote rename origin old-origin
git remote add origin https://gitlab.com/LakshanWijerathne1234/test_8.git
git push -u origin --all
git push -u origin --tags
Git push existing repository