REmove file from a commit Feb 17, 2023 - webdev Edit on GitHub! git reset --soft HEAD~1 after that, the changes can be sent back to stage and only the necessary file can be committed. Теги git Please enable JavaScript to view the comments powered by Disqus.