Git basic and general commands

 …or create a new repository on the command line

echo "# shristiSpringBasic" >> README.md

git init

git add README.md

git commit -m "first commit"

git branch -M main

git remote add origin https://github.com/rehan02/shristiSpringBasic.git

git push -u origin main

…or push an existing repository from the command line

git remote add origin https://github.com/rehan02/shristiSpringBasic.git

git branch -M main

git push -u origin main


( we will see this when we create new repository in github , i pasted here for future reference)

Comments

Popular posts from this blog

Spring boot versions : Detailed explanation of the different versions and releases of Spring Boot (AI Generated)

download youtube videos java program ( AI generated)

Java Spring Framework versions and their major releases ( AI Generated )