I would like to send all files in the directory except config.php
. Basically I use the git add .
command to add all the files, but when I have few edited files, I do this:
git add arquivo1.php
git add arquivo2.php
git add arquivo3.php
The config.php
file on my machine is one way, but on the server it has other specific variables. I do not always need to send config.php
. I would like a command to send all files except this one. I know there is .gitignore
and also this question about Ignore All files except a specific one in GIT , but sometimes I need to send the file config.php
, without ignoring it, when there is a specific configuration.
In the "pseudocommand" would be something like:
git add . exceto config.php
How to send all directory files except a specific one?