Let’s assume you were recently assigned to a team to develop a feature for an app. You clone (download) the entire app repository from GitHub and create a branch for your feature of the
main branch, and begin coding a new file in your local Git environment.
After testing your code and ensuring that everything is running correctly, it’s time to push those changes with a commit!
As a refresher, the
git commit command records change to one or more files in your branch, assigning the commit a unique ID that identifies who created the changes, what changes were created, and when the changes were created.
You can commit along with a message describing your work, and lastly, push the commit to the remote Github repository.
Take this course for free