
#Git status meaning how to#
Let’s start with a quick demo showing how to reach the detached HEAD state. When a local branch is started off a remote-tracking branch, Git sets up the branch (specifically the branch.
The table describing the porcelain format in git-status(1) is helpful, but its not completely clear what the three sections mean, even to some contributors.

git clone : Clone (download) a repository that already exists on GitHub, including all of the files, branches, and commits. docs: rephrase and clarify the git status -short format.You can see all of the options with git status in git-scm's documentation. This includes modifications, new files, unresolved conflicts. git status -v: Shows more "verbose" detail including the textual changes of any uncommitted files The git status commmand helps you understand the current state of your local Working Copy.git status -s: Give output in short format.git status: Most often used in its default form, this shows a good base of information.How to Use git status Common usages and options for git status

If your current local branch is linked to a remote branch, then git status will tell you if your local branch is behind or ahead by any commitsĭuring merge conflicts, git status will also tell you exactly which files are the source of the conflict.If you have any changed files in your current directory that have not yet been committed.Heavy lifting is done by gitstatusd- a custom binary written in C++. Where HEAD is pointing, whether that is a branch or a commit (this is where you are "checked out" to) gitstatus is a 10x faster alternative to git status and git describe.Its primary use case is to enable fast git prompt in interactive shells.In general, you can count on it to tell you: The git status command only outputs information, it won't modify commits or changes in your local repository.Ī useful feature of git status is that it will provide helpful information depending on your current situation. Git status shows the current state of your Git working directory and staging area.
