#demo repo 2
Here are git commands to remember:-
-
git status
-
git add .(for all) / git add
-
git commit -m "message"
-
git commit -am "message"
-
git push
-
git push -u origin
-
git pull
-
git branch
-
git branch -d
-
git checkout -b <new_branchname>
-
git checkout branchname
-
git reset
-
git reset
-
git reset -HEAD
-
git reset -HEAD~1
OR
git reset -HEAD~2 and so on...
-
git reset -hard <commit_code>