Branches To Delete And Rename

Official FreeEMS vanilla firmware development, the heart and soul of the system!
Post Reply
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Branches To Delete And Rename

Post by Fred »

Call me OCD, you might be close, but I don't care. I get annoyed by temp branches ending up in clones. My master and dev are just the past and future of the firmware depending on your perspective. Anything else is likely to get changed/rebased/replaced/removed. If I push them to my main repo, and someone clicks "fork" they end up with a copy of them, and likely never remove it. Those commits are just distracting in the "network" view and (possibly low quality) duplicates of final versions found in master and/or dev.

So I'm doing an audit of other peoples github forks to see what should be removed:
  • AndrewGauger: even.teeth.edge.fix (master could do with a rename too)
  • malcom2073: even.teeth.edge.fix (master could do with a rename too)
  • johnsop1: release (master could do with a rename too)
  • Preston: (master could do with a rename)
  • DeuceEFI: (DeuceCoupe and S10 could do with renames, you're using the build server/HEAD, right?)
  • evortriede: (master could do with a rename)
  • simeonveldstra: (dev could do with a rename or delete if you're happy with the commit that replaced it)
  • Matthijs309: cross.compile.test.example, even.teeth.edge.fix (master could do with a rename too)
  • toxicgumbo: PetersSpecialJBranch, DeuceCoupeIATandMATpotBuild, DeuceCoupeTempBranch, DeuceCoupeTempTimingHooray, DeuceCoupeTestShortDwell
If you don't know how to delete branches, or can't be bothered, and if you trust me, you can add me to your repo and I can clean it up for you.

I've created a new repo here that you should NOT fork from which I'll push temp branches to as required:

https://github.com/fredcooke/freeems-temp

Get this by running this command:

Code: Select all

git remote add shared.branches https://github.com/fredcooke/freeems-temp.git
And then:

Code: Select all

git fetch shared.branches
And then whatever else I tell you to do while working with you.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
User avatar
Fred
Moderator
Posts: 15431
Joined: Tue Jan 15, 2008 2:31 pm
Location: Home sweet home!
Contact:

Re: Branches To Delete And Rename

Post by Fred »

FWIW, this is how you delete a branch in Git:

Code: Select all

git push <remotename> :<branchname>
Or this for more than one:

Code: Select all

git push <remotename> :<branchname> :<otherbranchname> :<etcbranchnames>
For most of you, your <remotename> will be 'origin' and I hope I made no typos above.

So for example, Jeff could run this line to clean up his:

Code: Select all

git origin :PetersSpecialJBranch :DeuceCoupeIATandMATpotBuild :DeuceCoupeTempBranch :DeuceCoupeTempTimingHooray :DeuceCoupeTestShortDwell
And it's as simple as that.

Fred.
DIYEFI.org - where Open Source means Open Source, and Free means Freedom
FreeEMS.org - the open source engine management system
FreeEMS dev diary and its comments thread and my turbo truck!
n00bs, do NOT PM or email tech questions! Use the forum!
The ever growing list of FreeEMS success stories!
Post Reply