Git Daily Commit/Save

February 28, 2019

Assume you are done editing and ready to commit changes to remote.

Show changes done (deleted, modified and new files).

git status

Add all changes.

git add .

Commit all changes (locally)

git commit -m 'patch for bug #33'

NOTE: Run git log -1 to check last commit comment.

NOTE: Single Git Command for Add and Commit

Push commit to remote server.

git push origin master

NOTE: Refer Single Git Command (Alias) for Add, Commit and Push

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.