—–Not completed————-

Difference comparing

  • compare two different branch:
    
     git diff dev master
     
  • compare one file in different branch:
    
     git diff dev master -- hello.py
     

Rollback

  • undo one commit:
    
    git reset HEAD^ --soft
    
  • undo 3 commit:
    
    git reset HEAD^3 --soft
    
Advertisements