Menu +

Search Posts

Month: April 2019

Git Teamwork

Congratulations, you now know enough to start collaborating on Git projects! Let’s review. A remote is a Git repository that lives outside your Git project folder. Remotes can live on the web, on a shared network or even in a separate folder on your local computer. The Git Collaborative Workflow are steps that enable smooth project development when multiple collaborators are working on the same Git project. We also learned the following commands git clone: Creates a local copy of a […]

Git Branching

Let’s take a moment to review the main concepts and commands from the lesson before moving on. Git branching allows users to experiment with different versions of a project by checking out separate branches to work on. The following commands are useful in the Git branch workflow. git branch: Lists all a Git project’s branches. git branch branch_name: Creates a new branch. git checkout branch_name: Used to switch from one branch to another. git merge branch_name: Used to join […]

How to backtrack in Git

You’ve learned three different ways to backtrack in Git. You can use these skills to undo changes made to your Git project. git checkout HEAD filename: Discards changes in the working directory. git reset HEAD filename: Unstages file changes in the staging area. git reset commit_SHA: Resets to a previous commit in your commit history. Additionally, you learned a way to add multiple files to the staging area with a single command:

S/W Quality metrics/indexes

1. CC (Cyclomatic Complexity) Cyclomatic complexity is a software metric used to indicate the complexity of a program. It is a quantitative measure of the number of linearly independent paths through a program’s source code. It was developed by Thomas J. McCabe, Sr. in 1976. Cyclomatic complexity is computed using the control flow graph of the program: the nodes of the graph correspond to indivisible groups of commands of a program, and a directed edge connects two nodes if the second command might be executed immediately after […]