Ignoring files · GitHub Help

Sometimes I need to have a different app configuration when running the same app under different environments.

The best way for me while working both with a local Vagrant configuration and a custom configured production environments is to use:

git update-index --assume-unchanged path/to/file.txt

The full information can be found here: Ignoring files · GitHub Help.

Don’t put the config files in .gitignore, just change them locally and update-index. If there is a newer version of the file coming from the remote repo, you will be notified and will not miss update.

Put your GitLab on HTTPS

For this article I will use the following configuration:GitLab Docker image by sameersbn ...

Learn more

About Iliyan Trifonov

Web Developer, Blogger
Tagged , , , , , . Bookmark the permalink.