ProfessorAmanda / econsimulations

This repository provides the code underlying simulations for teaching statistics and econometrics. The project site, which includes teaching materials as well as the link to the simulations, is located here: https://amandagreggeconomics.com/statistics-simulations-project/
Other
1 stars 0 forks source link

Consolidate / remove old branches #180

Closed ProfessorAmanda closed 3 years ago

ProfessorAmanda commented 3 years ago

Before we end for the summer, it would be a good idea to start to clean up the repository. We now have many disused branches, the content of which is completely merged to master. Can we get rid of as many as possible?

ethansaxenian commented 3 years ago

Ah, yes. What (I think) you are seeing is all the branches on your local repository. When we delete a branch from GitHub (which we do after every pull request), that branch stays on your local computer. To delete a branch locally, run git branch -d [branchname]. Alternatively, I just did a quick google search and found this command: git branch --merged | egrep -v "(^\*|master|development)" | xargs git branch -d, which should delete all old local branches (source).

ProfessorAmanda commented 3 years ago

Boom! That worked great. Thanks for teaching me something new! Let's leave this issue open in case Tanya would like to do the same.

ProfessorAmanda commented 3 years ago

Actually I'm going to just move your reply to the github cheat sheet issue.