Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
19 lines (11 loc) · 1.31 KB

File metadata and controls

19 lines (11 loc) · 1.31 KB
Copy raw file
Download raw file
Outline
Edit and raw actions

Commit

On GitHub, saved changes are called commits. Each commit has an associated commit message, which is a description explaining why a particular change was made. Commit messages capture the history of your changes, so other contributors can understand what you’ve done and why.

Commit & push

Make any change in the code editor and you will notice that an up arrow is displayed on the GitHub button. The arrow means that there are local changes. They are stored on your computer and they need to get saved on GitHub. Click on that button to open the GitHub view.

The GitHub view contains the diffs that represent every local change. If the changes look correct, click on commit & push changes to create a commit of the changes and push them to GitHub. Once the commit is pushed, all of your code is safely stored in GitHub!

Review & revert

It's good practice to review your local changes before commiting; just like you review your answer sheet before turning in a test. If you find some changes that are incorrect, you can decide to fix them right away, revert the entire file, or even just commit them so you can make any fixes later.

See Also

GitHub Commit Documentation

Morty Proxy This is a proxified and sanitized view of the page, visit original site.