Skip to content

Instantly share code, notes, and snippets.

@karlcow
Created March 2, 2016 06:42
Show Gist options
  • Save karlcow/6fb4629c0f8e169a400c to your computer and use it in GitHub Desktop.
Save karlcow/6fb4629c0f8e169a400c to your computer and use it in GitHub Desktop.
Cleaning a bit my git repo for webcompat.com

I was a bit tired of having a big mess in my repo.

→ git branch -a
  12/1
  245/1
  264/1
  396/1
  683/1
  687/1
  693/1
  702/1
  710/1
  710/2
  712/1
  713/1
  749/1
  856/1
  862/1
  870/2
  902/1
  cssfixme-optim
* master
  remotes/origin/12/1
  remotes/origin/245/1
  remotes/origin/264/1
  remotes/origin/272/3
  remotes/origin/667/1
  remotes/origin/669/1
  remotes/origin/683/1
  remotes/origin/702/1
  remotes/origin/710/1
  remotes/origin/749/1
  remotes/origin/856/1
  remotes/origin/862/1
  remotes/origin/870/2
  remotes/origin/902/1
  remotes/origin/HEAD -> origin/master
  remotes/origin/master
  remotes/upstream/436/1
  remotes/upstream/accumulatingbackend
  remotes/upstream/arp
  remotes/upstream/comment-overflow
  remotes/upstream/comment-paragraph
  remotes/upstream/cssfixme
  remotes/upstream/cssfixme-scripts
  remotes/upstream/db_work
  remotes/upstream/dbdump
  remotes/upstream/details-issue
  remotes/upstream/fixmyurl
  remotes/upstream/gh-pages
  remotes/upstream/hallvors/quotefix
  remotes/upstream/issue-label-color
  remotes/upstream/issues/24/1
  remotes/upstream/issues/286/1
  remotes/upstream/issues/286/2
  remotes/upstream/issues/317/1
  remotes/upstream/issues/368/1
  remotes/upstream/issues/397/1
  remotes/upstream/issues/399/1
  remotes/upstream/issues/399/2
  remotes/upstream/issues/404/1
  remotes/upstream/issues/432/2
  remotes/upstream/issues/434
  remotes/upstream/issues/436/1
  remotes/upstream/issues/437/1
  remotes/upstream/issues/511/1
  remotes/upstream/issues/529/1
  remotes/upstream/issues/546/1
  remotes/upstream/issues/549/1
  remotes/upstream/issues/560/1
  remotes/upstream/issues/563/1
  remotes/upstream/issues/564/1
  remotes/upstream/issues/577/1
  remotes/upstream/issues/583/1
  remotes/upstream/issues/587/1
  remotes/upstream/issues/589/1
  remotes/upstream/issues/590/1
  remotes/upstream/issues/595/1
  remotes/upstream/issues/600/1
  remotes/upstream/issues/634/1
  remotes/upstream/issues/639/1
  remotes/upstream/issues/652
  remotes/upstream/issues/668/1
  remotes/upstream/issues/682/1
  remotes/upstream/issues/687/1
  remotes/upstream/issues/693/1
  remotes/upstream/issues/705/1
  remotes/upstream/issues/711/1
  remotes/upstream/issues/712/1
  remotes/upstream/issues/749/1
  remotes/upstream/issues/751/1
  remotes/upstream/issues/773/2
  remotes/upstream/issues/786/1
  remotes/upstream/issues/792/1
  remotes/upstream/issues/819/1
  remotes/upstream/issues/838/1
  remotes/upstream/issues/843/1
  remotes/upstream/issues/860/1
  remotes/upstream/issues/868/2
  remotes/upstream/issues/870/1
  remotes/upstream/issues/878/1
  remotes/upstream/issues/879/2
  remotes/upstream/issues/882/1
  remotes/upstream/issues/921/1
  remotes/upstream/issues/926/1
  remotes/upstream/karlcow-583/2
  remotes/upstream/labelworks
  remotes/upstream/letmespamyou
  remotes/upstream/master
  remotes/upstream/new-color-palette
  remotes/upstream/new-radio-select
  remotes/upstream/qrcode-layout
  remotes/upstream/queryparams
  remotes/upstream/readme-edits
  remotes/upstream/screenshot-bug-report
  remotes/upstream/searchwork
  remotes/upstream/staging
  remotes/upstream/state_what_state
  remotes/upstream/staticlabels
  remotes/upstream/tweak-auth
  remotes/upstream/url-link-upload
  remotes/upstream/webpack
  remotes/webcompat/436/1
  remotes/webcompat/arp
  remotes/webcompat/details-issue
  remotes/webcompat/gh-pages
  remotes/webcompat/issues/693/1
  remotes/webcompat/issues/705/1
  remotes/webcompat/issues/711/1
  remotes/webcompat/issues/773/2
  remotes/webcompat/issues/792/1
  remotes/webcompat/issues/819/1
  remotes/webcompat/labelworks
  remotes/webcompat/letmespamyou
  remotes/webcompat/master
  remotes/webcompat/searchwork
  remotes/webcompat/staging
  remotes/webcompat/staticlabels
  remotes/webcompat/webpack

so after a couple of git branch -d to clean all the issues which were closed on the project

git branch -d 12/1 245/1 683/1  687/1 693/1 712/1  749/1 856/1 862/1 870/2 902/1 cssfixme-optim

and delete some remote branches too.

git push origin --delete 272/3

I also went to reorganize a bit locally because I noticed that I was tracking twice the same thing with different names.

→ git remote -v
origin	git@github.com:karlcow/webcompat.com.git (fetch)
origin	git@github.com:karlcow/webcompat.com.git (push)
upstream	https://github.com/webcompat/webcompat.com.git (fetch)
upstream	https://github.com/webcompat/webcompat.com.git (push)
webcompat	https://github.com/webcompat/webcompat.com.git (fetch)
webcompat	https://github.com/webcompat/webcompat.com.git (push)

So I removed upstream name and change the name of my remote repo from origin to karlcow

git remote rm upstream
git remote rename origin karlcow

And now everything seems to be a lot clearer.

→ git remote -v
karlcow	git@github.com:karlcow/webcompat.com.git (fetch)
karlcow	git@github.com:karlcow/webcompat.com.git (push)
webcompat	https://github.com/webcompat/webcompat.com.git (fetch)
webcompat	https://github.com/webcompat/webcompat.com.git (push)

and

→ git branch -a
  264/1
  396/1
  702/1
  702/2
  710/1
  710/2
  713/1
* master
  remotes/karlcow/264/1
  remotes/karlcow/702/1
  remotes/karlcow/710/1
  remotes/karlcow/HEAD -> karlcow/master
  remotes/karlcow/master
  remotes/webcompat/436/1
  remotes/webcompat/arp
  remotes/webcompat/details-issue
  remotes/webcompat/gh-pages
  remotes/webcompat/issues/693/1
  remotes/webcompat/issues/705/1
  remotes/webcompat/issues/711/1
  remotes/webcompat/issues/773/2
  remotes/webcompat/issues/792/1
  remotes/webcompat/issues/819/1
  remotes/webcompat/labelworks
  remotes/webcompat/letmespamyou
  remotes/webcompat/master
  remotes/webcompat/searchwork
  remotes/webcompat/staging
  remotes/webcompat/staticlabels
  remotes/webcompat/webpack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment