A
A
Anton2015-04-07 09:38:34
GitHub
Anton, 2015-04-07 09:38:34

How to exclude a folder in .gitignore on github?

Created a repository on PC. I registered the idea folder in .gitignore,
2788ee86495448ef9c8daae0758fce43.png
then I created a repository on the github, I make a commit and merge
ca4a7e43a3de44f1b290091c74ebfc59.png4b4e9b7d4cf842fcbf647ee71531c232.png
the idea folder was created. And the old commits (7 pieces) all pulled up (deleted the repository from the github and created it again). My head is already boiling - either the folder was flooded there because of old commits,
or not. How to do something right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2015-04-07
@EvgenijDv

Just add / at the end
.idea/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question