Basic workflow of git for day to day use

Basic workflow of git for day to day use

Here is a simple overview of GIT workflow:

  • CLONE

    • This only needs to happen once. This is how we make a copy of a GIT repository sitting on a central server and pull it down to our local machine.

  • EDIT

    • Just edit files within the repository. No actual GIT operations required for this.

  • ADD

    • If you create new ones you will need to git add them.

  • COMMIT

    • When you are ready to commit a version of the files you need to

  • PULL

    • Before you can get your changes merged into the main repository you need to pull down changes that other members of your team may have made.

  • PUSH

    • This is when we take the local committed changes in our repository and publish them to the original repository that is hosted on central server. Then go back the EDIT phase.