How do I put my changes on GitHub?
Requirements
- A project that has been initialized with git. (Repos cloned with
git clone
automatically have a.git
folder) - A GitHub account.
Staging
-
Make some changes to your code.
-
Open the
Source Control
menu on the left. -
Click
Stage All Changes
(+ icon), think of this as the rough draft stage. -
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
, andadd(): 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. -
Click
✓ Comitt
, this should showSync Changes
if there are no other changes. If this does not show up make sure to stage and comitt your other changes. -
Click
Sync Changes
.