@Chadha93 @Leonard @vishalvivekm
In docs, it’s mentioned that don’t commit Gemfile
& Gemfile.lock
. If we don’t have to commit these files then can we add this to .gitignore
?
@Chadha93 @Leonard @vishalvivekm
In docs, it’s mentioned that don’t commit Gemfile
& Gemfile.lock
. If we don’t have to commit these files then can we add this to .gitignore
?
@Vaibhav.Maurya I think the Gemfile.lock
should be in your repository. This way bundler doesn’t have to recalculate all the gem dependencies each time you deploy, when we run the command bundle exec jekyll serve
^^ @AdiKris @asubedy
Furthermore
.Gemfile and node_modules are frequently modified as dependencies are regularly updated. These are not to be pushed to the upstream.
I’d suggest adding individual files one by one to the staging area, like git add <file-name>
instead of using git add .
unless you have a large number of changed files to add.
@Vaibhav.Maurya