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
run the commands given below
xxxxxxxxxx
git init
git add .
git commit -m "my first commit"
git remote set-url origin <Your-Repository-Link>
git push
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
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
// to create new repo on github through git bash cli
git remote add origin https://github.com/nitinKumarAwasthi/<Nome 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
xxxxxxxxxx
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.