Skip to content
Day 5 - Trim those branches episode artwork

Nov 17, 2017 1 min

Day 5 - Trim those branches

from The Code Quality Challenge (CQC)

This one is better read on the forum thread. Congrats on reaching the end of week one! It's Friday, so let's end with a quick win: Run git branch -r. Marvel at all the old tracking branches that have been left in your local repo. Run git remote prune origin to delete the local tracking branches that don't exist on origin anymore. You might want to throw a --dry-run on there to confirm that git is going to do the right thing. Re-run git branch -r. Better, right? Now that your local repo is clean, take a look at the branches on origin by running git ls-remote --heads origin. Delete any of your branches that are no longer needed with git push origin --delete old_branch. Maybe bug your coworkers to do 4 and 5, too. Enjoy the weekend!

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

Day 5 - Trim those branches

0:00 1:22

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of The Code Quality Challenge (CQC)?

This episode is 1 minute long.

When was this The Code Quality Challenge (CQC) episode published?

This episode was published on November 17, 2017.

Can I download this The Code Quality Challenge (CQC) episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.