I’ve just started using git-ftp, which allows me to push my commit to an FTP server.
The FTP credentials are stored in .git/config in this way:
[git-ftp]
user = myusername
url = ftp.myserver.com/httpdocs/
password = mypass
What I would like, is that anyone who clones the project from my git repository, automatically gets the configuration above as well.
But how can I ‘push’ this git configuration to my repo?
Read more about git-ftp: https://github.com/resmo/git-ftp
This is not possible as explained in this SO answer. Git config file is always local to a repository, and can’t be pushed or fetched. Best solution is to put a file containing the git-ftp parameters (excepted the password), and display instructions in a README.