Articles → GIT → Working Directory, Stage Directory And Repository In Git

Working Directory, Stage Directory And Repository In Git






Working Directory


  1. Working directory is the path where a developer works.
  2. All the changes done in working directory are untracked changes.
  3. Changes made in working directory needs to be add/updated in staging directory else changes will be lost.

Staging Directory


  1. The staging area is where git track changes on file.
  2. All the changes that needs to be committed are placed in staging directory.

Repository


  1. Repository is everything in the. git directory.
  2. All the changes when committed moves from staging directory to repository.



Posted By  -  Karan Gupta
 
Posted On  -  Friday, June 21, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250