TLDR
I want to be able to have two files change simultaneously in different projects.
Long version
I would like to use git to ONLY track content changes to my files, I do not care about so called typechange
changes. Can I change my git configuration or edit my .gitignore
file?
I have a file ~/proj/real_foo
that has identical contents to the tracked ./foo
but I want to be able to have both files change simultaneously in different projects.
Currently:
> ls
foo
> git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
> rm foo; ln -s ~/proj/real_foo ./foo
> git status
On branch master
Your branch is up to date with 'origin/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)
typechange: foo
no changes added to commit (use "git add" and/or "git commit -a")
Desired:
> ls
foo
> git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
> rm foo; ln -s ~/proj/real_foo ./foo
> git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean