Git does not display filenames in status, even if it's one file on multiple subdirectory path
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| git (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Bug Description
As you can see below, on list of untracked files there is './' but to get particular file name I need to ls then git add. Desired behaviour would be listing file name instead './'
nusch@XPS13:
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
./
nothing added to commit but untracked files present (use "git add" to track)
nusch@XPS13:
Outofband-
nusch@XPS13:
nusch@XPS13:
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: Outofband-
nusch@XPS13:
nusch@XPS13:
nusch@XPS13:
On branch master
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
new file: whitepapers/
ProblemType: Bug
DistroRelease: Ubuntu 15.10
Package: git 1:2.5.0-1ubuntu0.1
ProcVersionSign
Uname: Linux 4.2.0-23-generic x86_64
NonfreeKernelMo
ApportVersion: 2.19.1-0ubuntu5
Architecture: amd64
CurrentDesktop: Unity
Date: Thu Jan 21 02:52:59 2016
InstallationDate: Installed on 2015-05-08 (257 days ago)
InstallationMedia: Ubuntu 15.04 "Vivid Vervet" - Release amd64 (20150422)
SourcePackage: git
UpgradeStatus: Upgraded to wily on 2015-11-15 (66 days ago)

You can also just run git add DIRECTORY (e.g. git add .) which is equivalent to adding all the (non-ignored) files in the directory.