Quantcast
Channel: Crunchify
Viewing all articles
Browse latest Browse all 1037

GIT Repository: What ‘Stage’ Means in GIT Source Control

$
0
0

Crunchify Explaination on Git Stage  GIT Repository: What Stage Means in GIT Source Control

Git can help you with Version Control and with Web Site DeploymentGitHub is a web-based hosting service for projects that use the Git revision control system. I’m using BitBucket over GitHub because it provides free private repositories. Let’s start discussion basic Git workflow.

The basic Git workflow goes something like this:

  1. You modify files in your working directory.
  2. You stage the files, adding snapshots of them to your staging area.
  3. You do a commit, which takes the files as they are in the staging area and stores that snapshot permanently to your Git directory.

To stage a file is simply to prepare it finely for a commit. Git, with its index allows you to commit only certain parts of the changes you’ve done since the last commit. Say you’re working on two features – one is finished, and one still needs some work done. You’d like to make a commit and go home but wouldn’t like to commit the parts of the second feature, which is not done yet. You stage the parts you know belong to the first feature, and commit. Now your commit is your project with the first feature done, while the second is still in work-in-progress in your working directory.

Crunchfiy Github Git Repository Tips GIT Repository: What Stage Means in GIT Source Control

Another related articles you might want to check:

The post GIT Repository: What ‘Stage’ Means in GIT Source Control appeared first on Crunchify.


Viewing all articles
Browse latest Browse all 1037

Trending Articles