Questions tagged [git-status]

Shows which files in a Git repository have been modified and/or staged and what state they are in since the last commit

This is the main tool in to see the status of the files on the stage and what state they are in.

Running this command will tell you what tracked files have been added, deleted or modified since the last commit.

On a fresh repo or branch, you should see the following:

$ git status
# On branch master
nothing to commit (working directory clean)

See also

References

197 questions
16
votes
2 answers

git status takes too long

I'm working on a project where the version control system is SVN and I want to use git. I did a git svn clone but git status works terribly slow (around 8 minutes). The repository has around 63000 files and most of them are libraries ignored by git.…
Jacob Krieg
  • 2,834
  • 15
  • 68
  • 140
15
votes
5 answers

"git status" in brief or short format like "ls -1"?

I need to take a bunch of files that have changed and scp them to different boxes for testing. I'm having trouble figuring out how to make git status give me a listing like ls -1 so I can script the actions with minimal effort. I have an existing…
jww
  • 97,681
  • 90
  • 411
  • 885
12
votes
1 answer

Git: how to create different unmerged states?

When do different git status unmerged states occur, like added by us, added by them or both deleted? I've tried to reproduce the latter by performing a merge where a file has been deleted in the current and merged-from branch, but I was not able to…
mklhmnn
  • 4,770
  • 2
  • 16
  • 8
11
votes
3 answers

Why does "git status" show way too much untracked files?

Answer in the bottom. I am trying to see the status of my files in the git_test2 directory which contains 3 files named test1.txt, test2.txt and test3.txt. This is what I typed into Terminal: cd Desktop cd git_test2 git status Everything is good…
Ishay Frenkel
  • 319
  • 1
  • 3
  • 17
10
votes
3 answers

Entire computer in Git status untracked files

I'm new to git and I think I accidentally cloned in the root directory. When I committed one file (index.html) I noticed my whole computer (my desktop, my documents, etc) all in untracked files. I deleted the repository and I want to remove all the…
NICK
  • 139
  • 1
  • 2
  • 10
10
votes
2 answers

Where can I find info about the syntax of column.status?

From the Git documentation about the git status command: --column[=< options>] --no-column Display untracked files in columns. See configuration variable column.status for option syntax. --column and --no-column without options are equivalent to…
Andrey Bushman
  • 11,712
  • 17
  • 87
  • 182
9
votes
2 answers

How do I fix 'bus error' when trying to do git-commit or git-status

I have a git repository on an OS X server that used to work fine. I was able to add files, commit them, and pull the content to my laptop. Now, when I ssh into the server and do git commit or git status in the repository, all I see in the command…
Wilbo Baggins
  • 2,701
  • 3
  • 26
  • 39
9
votes
1 answer

Get JSON from git commands, such as git status

If I run this command: $ git status I get: On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working directory clean This is pretty difficult to parse. But what would be really nice is --json output, in another…
Alexander Mills
  • 90,741
  • 139
  • 482
  • 817
9
votes
1 answer

git status - don't show untracked files

Is there an option to git status so that untracked files won't be shown? I tried git status -u no but that hides everything and tells: "nothing to commit, working directory clean" even thouh there are files both staged for commit and not staged for…
codekiddy
  • 5,897
  • 9
  • 50
  • 80
9
votes
5 answers

How can I run 'git diff some/long/file/name' without typing the full path?

In my workflow, I often run the following pair of commands: $ git status M README.txt M some/long/file/name $ git diff some/long/file/name Is there any way, for fast typing/use_shortcat for long file name without copying it name (this action…
Kein
  • 977
  • 2
  • 12
  • 32
9
votes
2 answers

How to list all unchanged (tracked) files?

I unzipped an older "git-image" onto my git repository and most of the files have been changed. I would like to know which files remained untouched. How to list these files?
user3719454
  • 994
  • 1
  • 9
  • 24
9
votes
4 answers

Why does Git ignore these folders?

I added a Laravel App under Git so that I could push to Bitbucket. On root folder, I ran git add -A and pushed on remote server. I checked that it did not send all folders; for instance, it did not add vendor folder at all. How do I make sure that…
Volatil3
  • 14,253
  • 38
  • 134
  • 263
9
votes
3 answers

git show modify files but i don't change anything git reset did not work

I clone repository switch to my branch and when i print git status i see modify files, i try to do git reset --hard but there was no effect :(( git status On branch release Changes not staged for commit: modified: …
Ivan
  • 101
  • 1
  • 3
7
votes
1 answer

Letting git know that a file was renamed - OS X file renamed from lowercase to uppercase shows as untracked

I renamed a folder without using git mv or any other git command, from lowercase to uppercase, now git shows the new folder as not tracked and at the same time is tracking files inside the folder. I renamed "Jogo do rato" to "Jogo do Rato" and than…
Sérgio
  • 303
  • 2
  • 12
7
votes
3 answers

How to show `git status` for branches other than the current one?

To get to know how far ahead and/or behind a branch is compared to its remote, there's the git status command. But git status only shows the status of the current branch. Looks like to get to know the status of the other branches in the same…
lyle
  • 757
  • 1
  • 7
  • 18
1 2
3
13 14