Save configuration parameters to the repository

前端 未结 2 1698
误落风尘
误落风尘 2021-01-21 02:59

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         


        
2条回答
  •  南笙
    南笙 (楼主)
    2021-01-21 03:55

    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.

提交回复
热议问题