Cheat Sheet: Git commands on c9 - agile-organizer/Huddle-Skeleton---Base-- GitHub Wiki
A few git commands.
When working on a file in c9 you can make changes to it and save it. To push and update this file to github you have to add this file so it is prepared for commit. Since c9 does not support the git add functionality through the git bar type git add <filename> in the console on the bottom of the webpage, if the file is in a folder make sure to add the proper path. The file should now be ready for commit.
After saving the file go to Tools > Git > Commit. The console below should show a message field to be inserted, add the message in proper double qoutes and press enter. The files are now ready to be pushed on the github repository.
This command is used to push the files are ready to be pushed on the repo. After committing the files go to Tools > Git > Push This command pushes the files on github.
This command is used to update the repository if changes are pushed to it. Go to Tools > Git > Pull. The latest files shall be pulled from github. Also note that if pull changes would conflict with some of the existing changing files github wont allow user to pull changes until these conflicts are resolved or stashed. For more information go the cheat sheet resolve github conflicts.
This command gives you the current of your commits with the master branch. Tool > Git > Status and this should print the information in the console on where you align with the master branch on the repository.