in Git by
Q:
Tell me the difference between HEAD, working tree and index, in Git.

1 Answer

0 votes
by
The working tree/working directory/workspace is the directory tree of (source) files that you are able to see and edit.

The index/staging area is a single, large, binary file in <baseOfRepo>/.git/index, which lists all files in the current branch, their SHA-1 checksums, timestamps, and the file name – it is not another directory which contains a copy of files in it.

HEAD is used to refer to the last commit in the currently checked-out branch.
Click here to read more about GIT
Click here to read more about Insurance

Related questions

0 votes
asked Sep 3, 2020 in Git by SakshiSharma
0 votes
asked May 21, 2020 in Git by SakshiSharma
0 votes
asked Oct 15, 2019 in Git by rajeshsharma
0 votes
asked Oct 15, 2019 in Git by rajeshsharma
0 votes
0 votes
asked Nov 15, 2020 in Git by rajeshsharma
...