I cloned a git repository into my local machine I replace four files in my physical location. Performing
git status
yields following results
On branch XXX Changes not staged for commit: (use "git add ..." to update what will be committed) (use "git checkout -- ..." to discard changes in working directory)
modified: ABC.xml
modified: XYZ.java
modified: DBCD.java
modified: sdfsd.java
no changes added to commit (use "git add" and/or "git commit -a")
Thereafter, I do
git add --all
get following messages:
warning: LF will be replaced by CRLF in ABC.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in XYZ.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in DBCD.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in sdfsd.java
The file will have its original line endings in your working directory.
Now when I do
git status
The following messages that display seems to indicate that git has lost track of the files. They do not appear under Changes to be committed section
On branch XXX
nothing to commit, working directory clean
Also, these four files become read only mode.
Also, git whatchanged does not indicates that file got committed.
Not sure what wrong I am doing ? Shall I simply commit ? Also, what happens when
git add --all
happens ?
Update: I repeated this entire process once more changing just one thing. Instead of using
git add --all
I used
git add ABC.XML
Even now, similar thing happens. ABC.XML file does not appear under Changes to be committed section. Git Status does not show status of ABC.XML however, All other files still show on git Status