git info command code example
Example 1: git common commands
git init
//add all
git add .
//cancel adds
git reset
//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
Example 2: git commands
git init
git add *Enter File Name Here*
git commit -m "first commit"
git remote add origin *Enter URL Here*
git push -u origin master
Example 3: git commands
git push origin <branchname>
Example 4: git basic commands
git fetch origin
git reset --hard origin/master