Advertisement

< Back to Article

A Quick Introduction to Version Control with Git and GitHub

Fig 1

The git add/commit process.

To store a snapshot of changes in your repository, first git add any files to the staging area you wish to commit (for example, you’ve updated the process.sh file). Second, type git commit with a message. Only files added to the staging area will be committed. All past commits are located in the hidden .git directory in your repository.

Fig 1

doi: https://doi.org/10.1371/journal.pcbi.1004668.g001