问题
How to add a same file in different locations in GIT on same branch If i update in one place it should reflect in other place also
Here is the flow
file a.txt under directory "DIR 1" and i need same file under directory "DIR 2 "
If I commit /update anything on a.txt it should reflect two places.
I used symbolic links no use is there any way to get it down ?
回答1:
Symbolic links are one correct way, but on Windows, you need to be careful as how you register them in your Git repo:
See "Git Symlinks in Windows", for the right post-checkout script in order to correctly update/restore the content referenced by those symlinks.
来源:https://stackoverflow.com/questions/20877917/same-file-in-different-locations-in-git