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

Time:01-06

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?

CodePudding user response:

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

  •  Tags:  
  • Related