Rules

Secret ingredients to quality software

Do you know the benefits of using source control?

Last updated by Taine Riley on 01 Aug 2021 11:22 pm (3 days ago) See History

Source control is the backup of your code, as well as your change history to track changes.

With the source control, we can share project code and cooperate with other team members. Using it allows us to track changes, compare code, and even roll-back if required. Moreover, it keeps our code safe that is the most important.

FileChanges
Figure: Right-click a file and select Git | View History to see the changes in source control.

CompareFileChanges
Figure: We can select different changesets and compare the changes

Changesets
Figure: We can select different changesets and compare the changes. Blue = modified, Green = addition, Red = deletion

Annotate
Figure: Right click a file and select Git | Blame (Annotate) to view the history on a segment basis

AnnotatedFile
Figure: Use annotate to understand (or find the guy) to understand his thoughts before deleting/changing someone elses code

AnnotateDetails
Figure: Annotation is great, but it gets even better when clicking the commit code gives you its full details

Don't just fix the problem, see who caused the problem and correct them. - Adam Cogan

Using VS Code? There are 2 awesome extensions to see history:

Adam CoganAdam Cogan

We open source. This page is on GitHub