20. The Git Workflow#
A typical Git workflow—as illustrated in the figure above—is:
Pull recent changes from the remote with
git pull
.Make some changes locally.
Stage your changes with
git add
.Commit your changes with
git commit
.Push the changes to the remote with
git push
.Repeat steps 1-5 until the project is finished.
There are lots of steps in this process, so there are lots of places where it can go wrong. Pay attention to error messages and search online if you get stuck. Lots of people use Git, so your question has probably been asked and answered. 😃
See also
Pro Git is the definitive Git resource and an excellent reference to keep at hand as you begin to work with Git.