Answer the question
In order to leave comments, you need to log in
How can I change the first commit?
In the first commit, I forgot to put the files in gitignore, now it's the 20th commit.
How can I get out of the situation so that I can push a branch to the repository without unnecessary files?
What could be the solution for this?
Is it possible to change the first commit and so that those that came after it were already without extra files?
Answer the question
In order to leave comments, you need to log in
I understand that you need this https://help.github.com/articles/remove-sensitive-data/
Remove files from git index (git rm --cached).
Add them to .gitignore.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question