Skip to content

Basics of Github

Kira Noël edited this page Mar 22, 2017 · 4 revisions

Cloning (aka getting the program from GitHub on your computer):

First time committing your changes (uploading your work)

  • Open Git Bash in the folder frc-steamworks-robot-2017
  • git checkout -b "A_NAME_FOR_YOUR_BRANCH_HERE"
  • git push origin THE_NAME_OF_YOUR_BRANCH
  • git add .
  • git commit -m "YOUR_COMMIT_MESSAGE_HERE"
  • git push
  • Go to github.com and go to the frc-steamworks-robot-2017 project
  • Create a pull request
  • Wait for admins to approve your code.

Committing any other time

  • Open Git Bash in the folder frc-steamworks-robot-2017
  • git branch (this will show you what branch you're on; make sure it's the branch you want to be on)
  • If you're on the wrong branch, enter: git checkout yourBranchName
  • git add .
  • git commit -m "Commit message here"
  • git push origin yourBranchName

Always check the error messages! They're usually pretty useful and offer ways to fix the error.