Git

Reset to HEAD

  • git reset --hard HEAD

Branches

  • branch commmand
    • list branches
      • git branch -l
  • creating
    • git checkout -b <branch_name>

Import File from Current Branch to

  • git restore --source otherbranch path/to/myfile.txt

Submodules

First published: March 10, 2022