Git Commit
-
Maintaining the integrity of your work by controlling what goes into and out of your repository is an important job of any version control system. The changes you make to one or more files don't become part of the repository until you first issue a "commit" command. This command prompts you to enter brief comments listing the changes you made. Once committed, your file is part of your local branch of the repository, but is not yet merged with the main branch.
Git Push
-
Before others can use your code, you must add it to the main branch. The "push" command transfers the changes you committed to your local branch to the remote, main repository. The push command "git pull origin master" automatically sends your local repository changes to the remote repository you pulled your branch from originally. You can undo the changes you pushed by using the "git-revert" command.