How to push or pull a specific file from the repo?

Gitlab folder structure
App1
Nginx.conf
Hosts
App2
Nginx.conf
Hosts
App3

Similarly there will be n+ folders in the repo

Currently the issue I am facing is to fetch a particular nginx.conf file from the repo
For example :-
If there is an update in nginx conf for particular application then I need to fetch that particular conf file using ansible

And secondly I also need to push the hosts file into to git repo for all applications independently.