Git - Working (Tree|Area)

About

The working tree (or working area) is a directory where the work happens (extraction, modification, commit).

It's on the local file system:

Management

Location

The location of the work tree is:

Purge

If you want to your working directory back to the status of upstream, the following commands can be used (remember everything you've worked on is gone after these):

git reset --hard upstream/master
git clean -fdx





Discover More
Git

is a content-addressable file system used to track directory tree content (as defined by its creator Linux Torvald) The tracking happens with...
Git - Checkout

A checkout will change the current branch Specifically, it will checkout the files from the repository for a branch in the working directory to match the version in the index (staging area) ...
Git - Clone

git clone creates a clone known as local repository from a remote repository. cloning in git means: downloading the remote repository into a newly created directory setting for each downloaded branch...
Git Commit Tree Data Model
Git - Commit

A commit in git is an object that stores the information : who saved the file system snapshots, when they were saved, why they were saved. the commiter the author the parent commit It's...
Git - Conflict resolution

In case of conflict during a merge, the working tree files will include a description of the conflict bracketed by the usual conflict markers <<<<<<< and >>>>>>>. For the marker, Git uses the same style...
Git - Current / working / HEAD / active branch

The current or active branch is: the branch checked out actually in the working tree The current branch is also known as the HEAD branch (in uppercase) that represents the last commit known...
Git - Database

The git core database is a key store value where a key value entry is known as an object. (All data in Git are objects) The database is mostly composed: * of tree of object * * * *...
Git - Diff

in Git Diff between the head commit of the current branch (HEAD) and the current file not yet committed (in the working area) Between the head of the main branch and the head commit of the current...
Git - File

File management in Git (blob and not directory) blob object on the local file system or not (ie in the git file system database) See and short status A file (or blob) identifier is the...
Git File Lifecycle
Git - File Status

The status of a file in a working directory is one of: where: untracked See unmodified modified staged means that the file is in the index (proposed next commit) Each file in a working...



Share this page:
Follow us:
Task Runner