Not all files are uploaded to Github when committing

0

The following question arises:

I'm working with a PHP project and it weighs around 1.5 GB. And besides this it contains a little more than 5000 files.

When doing the git add. and the git commit -m "Comments of the commit" no problem occurs, in fact there is no problem when I do the git push origin master , but when opening github I realize that not all the files that I have in my project are local.

Any idea why this happens?

    
asked by Guillermo Ricardo Spindola Bri 16.04.2018 в 17:40
source

1 answer

2

If you are using some framework, these usually bring a file called .gitignore that does it is to contain a series of names of both files and folders, the git comes and ignores these files. With what purpose? simply that is why, to avoid uploading things that are not necessary, such as modules that can be downloaded with a command line, those modules that you have added are saved in a file package.json is also used to ignore connection files the database.

can read more about .gitignore Here

    
answered by 16.04.2018 / 17:49
source