GitHub Tutorials

GitHub Tools

  • TortoiseGIT
    Integrates directly into the Windows Shell environment.
    Note: Will need to install a special GIT program, the TortoiseGIT will notify you of this during install though.
    *GIT Note:
    During install, when questioned about PATH, select the second option that DOES modify windows PATH partially, but not completely.

Github Basic Commands

  • Cloning The repo (fresh) (the https:// can be found on the github repo page)
    git clone https://github.com/SOMETHING/SOMETHINGELSE.git
  • Fetch (get latest files, no merging done):
    git fetch
  • Pull (get latest files, merges as well as fast forward merging (complex stuff)):
    git pull
  • Display which branch you’re currently in:
    git branch
  • Switch to a branch (This command let’s you shift between branches and even to “master“)
    git checkout branchname
  • Committing Can be done by doing:
    git status
  • Then from the list of files, run:
    git add "path/filename.ext"
  • From there you can perform the following to commit ONLY those files:
    git commit -m "Message goes here."
  • Otherwise, to commit everything, simply use this: (-a = all changes, -m = message)
    git commit -a -m "Message goes here"