Do I commit the package-lock.json file created by npm 5?

npm 5 was released today and one of the new features include deterministic installs with the creation of a package-lock.json file. Is this file supposed to be kept in source control? I’m assuming it’s similar to yarn.lock and composer.lock, both of which are supposed to be kept in source control. 12 Yes, package-lock.json is intended … Read more

Ignore files that have already been committed to a Git repository [duplicate]

This question already has answers here: How can I make Git “forget” about a file that was tracked, but is now in .gitignore? (31 answers) Closed 4 years ago. I have an already initialized Git repository that I added a .gitignore file to. How can I refresh the file index so the files I want … Read more

How to change the author and committer name and e-mail of multiple commits in Git?

I was writing a simple script on the school computer, and committing the changes to Git (in a repo that was in my pen drive, cloned from my computer at home). After several commits, I realized I was committing stuff as the root user. Is there any way to change the author of these commits … Read more