, /. .
a git commit , , , . , , myfile myfile, git myfile, , / myfile, myfile.
, myfile myFILE . "", . git status, , .
, . git .
, , , . git status , dir :
$ echo >> public/javascripts/app/fckeditor/fckpackager.xml
$ git status
Possible outcome:
# On branch master
# Changes not staged for commit:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# modified: ...
# modified: public/javascripts/app/fckeditor/fckpackager.xml
# modified: public/javascripts/app/fckeditor/FCKPACKAGER.xml
git ls-files, , :
$ git ls-files public/javascripts/app/fckeditor/fckpackager.xml
public/javascripts/app/fckeditor/fckpackager.xml
public/javascripts/app/fckeditor/FCKPACKAGER.xml
, , git checkout-index, - ( , ):
$ git checkout-index --prefix=v1/ public/javascripts/app/fckeditor/fckpackager.xml
$ git checkout-index --prefix=v2/ public/javascripts/app/fckeditor/FCKPACKAGER.xml
, , , git rm --cached, :
$ git rm --cached public/javascripts/app/fckeditor/FCKPACKAGER.xml
, , git reset --hard
, . , .gitconfig.