A
A
a000_000a2018-08-21 09:48:56
git
a000_000a, 2018-08-21 09:48:56

How to remove a specific file from a Git commit?

A commit is made in Git, it is necessary to exclude the commit file package-lock.json, what is the best way to do this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Radjah, 2018-08-21
@Radjah

Remove the file, make a stage, make a commit with the --amend key. At least that's what SmartGit does if the commit isn't pushed.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question