training:git_commands

This is an old revision of the document!


Git Commands

Please feel free to add to this page! :D

  • Create things:
    • Make git folder repository: git init
    • Add file: git add <file name>
    • Remote folder: git remote add <filename> https://github.com/try-git/try_git.git
    • Store: git commit -m“<thing changed>”
  • Save things:
    • Remote repository: git push origin <branchname>
  • See changes:
    • Summary of commits (ie. delete, add, etc.): git log
    • File changes: git status
    • Working directory changes: git diff
  • Delete/Undo things:
    • Remove file: git rm <filename>
    • Undo: git reset
  • Navigate github:
    • Change directory: git checkout — <filename>
  • training/git_commands.1453948574.txt.gz
  • Last modified: 2021/09/19 21:59
  • (external edit)