How to Commit and Push Code to Server Repository In GIT

This will show you how to commit and push code from your local machine to the GIT server repository. 

The expectations are that you have the following installed.

  1. GIT.
  2. Source Tree (  or TortoiseGit (

You should already have the repository on your local machine pulled down from the GIT server.

After satisfying all the above requirements, you should do the following.

  1. Go to your local machine folder where the code you want to commit is.
  2. With TortoiseGit, you should then right click on the folder.
  3. You should then select the Git Commit → XXXXXXXXX selection.
  4. A new window will popup.
  5. You will need to type in your commit message explaining what you just did.
  6. You will then need to select the files that you want to send to the server.
  7. Press the Commit button at the bottom right.
  8. You will then see a new window popup.
  9. The window log message is located in the white box.
  10. After it completes, click the Push button.
  11. A new window will popup.
  12. You will then by default only need to click the OK button.
  13. All the settings should be set and the other content are only for advanced users.
  14. This window will complete your commit and push to the server.


From here, you might need to create a pull request if you pushed to a different branch.  If you didn't, you should be all set and the server now has your latest code.