R
R
run1822019-08-05 15:10:46
git
run182, 2019-08-05 15:10:46

How to find all old commits with a file added to .gitignore?

I have a file that has been added to and removed from .gitignore several times. It is currently in .gitignore. How can I find all the commits it was committed to before, preferably in the github interface?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2019-08-05
@saboteur_kiev

add this file manually (can be empty), and then look at its history.

touch ignored.txt
git add ignored.txt
git commit -m "add ignored.txt file"
git log ignored.txt

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question