Categories: General

The Jesus Quote You’ll Never Hear in Church

Sometimes when you first install git you realize you added a bunch of crap
to your repository, which makes it bloated. Or maybe you have junk files
like .DS_STORE lying around that you want to keep out of your git goodness.

Here’s how to delete from your repository without deleting them from your
disk.

# git rm -rf –cached $FILES

Then commit, push, and then pull on any remote repositories.

If you want to delete them from your disk as well you can just omit the
–cached bit.

# git rm -rf $FILES

Finally, to keep this from happening in the first place, you can use a
.gitignore file to keep certain content from going into your repository.
Just wildcard the stuff you’re looking for with asterisks and make a list of
those strings in your ignore file.

Gerald Businge

Leave a Comment
Share
Published by
Gerald Businge

Recent Posts

The Changing World of Crypto: How to Stay in the Game Without Losing Faith in Yourself

Want to explore the world of cryptocurrency and see what’s really going on behind the…

1 month ago

Betrayal in the City by Francis Imbuga

1. Introduction to the Text Title: Betrayal in the City Author: Francis Imbuga (Kenya) Genre:…

4 months ago

The Moon also sets by Osi Ogbu

Brief Context Author & Publication: Written by Nigerian author Osita (Osi) Ogbu, the novel was…

4 months ago

Meet Musinguzi John Paul – Your AI Teacher of Christian Religious Education for O-Level in Uganda

Step into a deeper understanding of faith, values, and biblical truth with Musinguzi John Paul,…

5 months ago

Meet Mbabazi Bridget – Your AI Teacher of Entrepreneurship for O-Level in Uganda

Are you ready to unlock your business potential and become a future innovator, job creator,…

5 months ago

Meet Alinda Violet – Your AI Agriculture Teacher for O-Level in Uganda!

Step into the future of farming, food security, and environmental stewardship with Alinda Violet, your…

5 months ago