10 important commant for git



These are my 10 most used git commands: to create and switch to a different branch
 git checkout -b branch-a  
to check the status
 git status  
to revert the file to its original state
 git restore file-n.js  
to review the commit history
 git log  
to see a condensed version of the commit history
 git log --oneline 
to view the condensed history in the terminal
 git log --oneline | cat 
to discard all changes and reset to a specific commit.
 git reset --hard (log) 

Comments