xxxxxxxxxx
#initialize
git init
# add your URL , it can be local or remote one
git remote add origin <YOUR_URL>
# commit something
git add *
git commit -m "your message"
# push to your repository
git push origin master
# you can then go and check online
xxxxxxxxxx
Create a new repository on the command line
git init
git add .
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/neetigyachahar/codebox.git
git push -u origin main