# Example of ignoring files with passwords

**URL:** <https://forums.kodeco.com/t/example-of-ignoring-files-with-passwords/108603>\
**Category:** Mastering Git\
**Created:** [May 10, 2020, 8:27pm UTC](https://forums.kodeco.com/t/example-of-ignoring-files-with-passwords/108603 "2020-05-10T20:27:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![scarfire](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/scarfire/32/81494_2.png) [@scarfire](https://forums.kodeco.com/u/scarfire)\
**Post date:** [May 10, 2020, 8:27pm UTC](https://forums.kodeco.com/t/example-of-ignoring-files-with-passwords/108603/1 "2020-05-10T20:27:31Z")

</div>

In Chapter 5 it says “A good example would be any files that contain **API keys, tokens, passwords** or other secrets that you definitely need for testing, but you don’t want them sitting in a repository — especially a public repository — for all to see.”

Can you add a good example of where you have maybe a Swift project that contains login/pwd connection string values to Firebase, MySQL, etc. that you need to make your project work but have somehow excluded it because you want to make your project public? I have many projects I have made and want to make them public to use as part of a resume, but I keep them private because I do not know how to correctly hide these things yet still have it work for others. Thanks.

---

<div class="post-metadata">

**Author:** ![shogunkaramazov](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/shogunkaramazov/32/108826_2.png) [@shogunkaramazov](https://forums.kodeco.com/u/shogunkaramazov)\
**Post date:** [July 6, 2020, 3:56am UTC](https://forums.kodeco.com/t/example-of-ignoring-files-with-passwords/108603/2 "2020-07-06T03:56:49Z")

</div>

@scarfire Please check out the updated version of the book when you get a chance:

[https://store.raywenderlich.com/products/mastering-git](https://store.raywenderlich.com/products/mastering-git)

I hope it helps!

---

<div class="post-metadata">

**Author:** ![scarfire](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/scarfire/32/81494_2.png) [@scarfire](https://forums.kodeco.com/u/scarfire)\
**Post date:** [July 7, 2020, 12:50am UTC](https://forums.kodeco.com/t/example-of-ignoring-files-with-passwords/108603/3 "2020-07-07T00:50:23Z")

</div>

ePub download says 2.0 which was the version I already had. What changed? I figured out how to do it though.
