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
0
votes
1 answer

How do I show only branch out-of-dateness information from `git status`?

Typically git status shows: Current branch name (or detached HEAD status) Whether upstream branch (if any) is ahead, behind or diverged Changed staged for commit Changes not staged for commit Untracked files How do I view only 1 and 2 without…
Vi.
  • 37,014
  • 18
  • 93
  • 148
0
votes
1 answer

how to remove a directory or files in git bash to unstage them

I am checking status of me repo using " git status ". but it shows that i used to changes to be committed , here the commands are : ~/udacity-git-course/new-git-project (master) $ git status On branch master No commits yet Changes to be…
0
votes
1 answer

How do I remove untracked directory tree (submodule / sub-repository) from main git repository?

For the life of me I can't seem to 'remove' an untracked sub-module/directory from the main git repository. I've tried various syntaxes, but I keep getting the 'pathspec' error stating there was no match, even though the folder is there in plain…
skeetastax
  • 1,016
  • 8
  • 18
0
votes
0 answers

git status does not see changes applied remotely (github)

git status says: "Your branch is up to date with 'origin/master'" the origin/master is being tracked well after: git branch --set-upstream-to=remotes/origin/master Branch 'master' set up to track remote branch 'master' from…
Igor
  • 1
0
votes
1 answer

Lines deletions has been done but there is no commit to blame

Some lines has been deleted from a file, and I'd like to know when and how it happened. But: no faulty commit to be found. Really strange. Here is git log, that shows (as last changes) the commit when the lines were added: $ git log --follow -p --…
theredled
  • 998
  • 9
  • 20
0
votes
1 answer

Git - in submodule 'git status' does not give "is up-to-date" info as in root repo

I have a git repo with a submodule. In the root repo, git status gives me the status of the branch in compare with remote branch. Eg: On branch develop Your branch is up-to-date with 'origin/develop'. But in the submodule repo, I dont have the…
Anh-Tuan Mai
  • 1,129
  • 19
  • 36
0
votes
0 answers

Git commit status doesn't resolve the repository in jenkins

I am working on integrating sonarqube with jenkins ci. I am building a jenkins job for a branch of certain github repositories.But even after the build is successful the set commit status post build action of jenkins cannot fetch the repository name…
Priya
  • 11
  • 3
0
votes
2 answers

Running 'git status' from any folder shows status with a specific repo

When I type git status in any folder it lists the status of one of my git projects, compared to the current folder. Even when I am in another git project. Also, if I cd to /root folder and check there is no .git folder present and type in git status…
Patrick Clancey
  • 1,330
  • 1
  • 14
  • 22
0
votes
2 answers

Git status command - entire computer under untracked files

I'm quite new to github. Today I was in the path Desktop/Projects and I made a new directory in it: mkdir CV inside it a ran the command: echo "# CV" > README.md because I wanted to create a Readme file inside the CV directory and just writing…
Gtchweb
  • 49
  • 1
  • 8
0
votes
1 answer

git Status Shows Same File Twice - But with different path slash styles

When I do a git status, I see a change list that looks like this: # modified: CustomizablePDFs/InvoiceAdapter.php # deleted: "CustomizablePDFs\\Model/AlignContainer.php" If I add then commit CustomizablePDFs/InvoiceAdapter.php, it…
Ben Gribaudo
  • 5,057
  • 1
  • 40
  • 75
0
votes
2 answers

git status find untracked files ../.merge_file_vbohis auto generated and i don't know how to git rid of

when i run the command: git status I find untracked files ../.merge_file_vbohis auto generated and I don't know how to git rid of and why are they here?! untracked files: (use "git add ..." to include in what will be…
0
votes
3 answers

getting the changes in a unstaged file

When I run this command: $ git status Here is the result: /* red color - I haven't added them yet */ modified: inaccessible/dbh_conn.php modified: myweb/.idea/workspace.xml modified: myweb/application/search.php Now I need to see the changes…
stack
  • 10,280
  • 19
  • 65
  • 117
0
votes
1 answer

git-status reports everything clean but git-pull complains about unstaged changes

Could somebody explain to me the following output? [user@ hostname /dir]% git status On branch master Your branch is up-to-date with 'origin/master'. It took 11.81 seconds to enumerate untracked files. 'status -uno' may speed it up, but you have to…
user8434768
0
votes
0 answers

Git status and distant repository

I have some git repositories and when I do git status I don't have the same message For a first repository I have (sorry in French) Sur la branche master Votre branche est à jour avec 'origin/master'. rien à valider, la copie de travail est…
Ccile
  • 187
  • 1
  • 3
  • 12
0
votes
2 answers

Git check when a file was modified

I use git status to check when a file was modified. But I want to know the exact date & time of the modification. Is there a command for that? I know I can use Finder to check the date and time of the Last Modified. But a command would be much…
Ennabah
  • 2,303
  • 2
  • 20
  • 39