Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Are files specified in .gitignore pushed (uploaded) to remote repo by default?

In my local repo, I have large files that I don’t wish to commit or upload to the remote repo. If I add these files to .gitignore, will they still be uploaded to the remote repo by git push command?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

If you add the correct path to the file in the .gitignore, the file won’t be added if you use git add . and it won’t be pushed if you type git push.

So short answer, no

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading