ignore - Can't unignore ssh config in git repo -
i have git bash home directory under version control. i'm using whitelist (ignore except ...):
$ cat .gitignore # ignore things * # not these (with exceptions) !*.bash_aliases !*.bash_profile !*.bashrc !*.drush/ !*.drush/* .drush/cache !.gitconfig !.gitignore !.gitalias !*.minttyrc !*.vim/ !*.vim/* .vim/.netrwhist !*.vimrc
i want add .ssh/config
exceptions, haven't seemed have gotten syntax correct.
$ ls .ssh/config .ssh/config
i have line in .gitignore
:
$ git diff diff --git a/.gitignore b/.gitignore index 22b3a79..b84bcd3 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ !.gitignore !.gitalias !*.minttyrc +!.ssh/config !*.vim/ !*.vim/* .vim/.netrwhist
however hasn't been unignored:
~ (master) $ git status changes not staged commit: modified: .gitignore no changes added commit (use "git add" and/or "git commit -a")
looking @ syntax of other things in .gitignore, tried this:
$ git diff diff --git a/.gitignore b/.gitignore index 22b3a79..659d7be 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,7 @@ !.gitignore !.gitalias !*.minttyrc +!*.ssh/config !*.vim/ !*.vim/* .vim/.netrwhist
to no avail:
$ git status changes not staged commit: modified: .gitignore no changes added commit (use "git add" and/or "git commit -a")
what syntax add .ssh/config
exception in .gitignore
?
git ignore
:
it not possible re-include file if parent directory of file excluded.
so try add:
!.ssh/
Comments
Post a Comment