clean package-lock.json code example Example 1: untrack package-lock.json git rm <name_of_file> Example 2: untrack package-lock.json git rm package-lock.json