github com code example
Example 1: new repository github used
$ git init
$ git add .
$ git commit -m "First commit"
$ git remote add origin remote repository URL
$ git remote -v
$ git push origin main
Example 2: github
//cancel commits
git reset HEAD^
//cancel last 3 commits
git reset HEAD~3
//when first commit
git push -u origin master
//remove remote origin
git remote remove origin
//reset remote origin
git remote add origin https://github.com/yourname/project.git
git init
//add all
git add .
//cancel adds
git reset
Example 3: github
echo "# practice" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/shlee87/practice.git
git push -u origin master
Example 4: github
pip3 install flask_bootstrap email_validator flask_wtf
Example 5: github
adding git remote origin