Add all uncontrolled files?

I use phpstorm as my IDE, it has built-in git version control integration, so I never had to use the command line.

However, I ran into a problem several times when I was asked "Do you want to add this file / directory to the git version control" I did not click "No", so I have several folders and files all over the place that is not under control.

I am wondering if there is a command that I can run that will add all these files to the version control for me?

+3
source share
2 answers

Get at the command line and change the working directory to the git repository.

$ cd /home/wesley/dev/mytwitterbook

$ git add .

, , , .gitignore 'd, .


NB: git add . , . , . , :

$ git stash  # set aside any changes in VC'd files
$ git add .
$ git stash pop  # restore stashed changes
+3

PhpStorm , Unversioned files node, node , . commit/push .

+7

All Articles