Skip to main content

How do I put my changes on GitHub?

Requirements

  1. A project that has been initialized with git. (Repos cloned with git clone automatically have a .git folder)
  2. A GitHub account.

Staging

  1. Make some changes to your code.

  2. Open the Source Control menu on the left.

    Source control menu

  3. Click Stage All Changes (+ icon), think of this as the rough draft stage.

    Staged changes

  4. Write a comitt message, although you may be tempted to use a random name please give it an actual description. Personally I use fix(): Removed issue with Swerve, clean(): Organize code into multiple functions, and add(): TankDrive however this format isn't necessary. Having good comitt messages make it easier for not only others but for yourself to go back through the history and know what is changed without manually reviewing all of the changes.

    Comitt message

  5. Click ✓ Comitt, this should show Sync Changes if there are no other changes. If this does not show up make sure to stage and comitt your other changes.

    Comitt button

  6. Click Sync Changes.