xxxxxxxxxx
git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master
xxxxxxxxxx
# Go into your existing directory and run below commands
cd docker-spring-boot
echo "# docker-spring-boot" >> README.md
git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master
xxxxxxxxxx
#How to push a repo to an existing
git init
git add .
git config --global user.email "<your-github-email>" && git config --global user.name "<your-githb-username>"
git commit -m "<>"
git remote add origin <repohttps>
git remote -v //to confirm
git branch main master -f && git checkout main //'do this if gits default branch is master'
git push origin main -f
xxxxxxxxxx
echo "# flutter_cubit" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/saichaitanya0012/flutter_cubit.git
git push -u origin main
xxxxxxxxxx
git remote add origin https://github.com/NdagiStanley/new-repository.git
git branch -M `main`
git push -u origin `main`
xxxxxxxxxx
cd docker-spring-boot
echo "# docker-spring-boot" >> README.md
git init
git add -A
git commit -m "first commit"
git branch -M master
git remote add origin https://github.com/devopsmaster/docker-spring-boot.git
git push -u origin master