View unanswered posts | View active topics It is currently Wed Oct 18, 2017 7:33 pm



Reply to topic  [ 2 posts ] 
Branches To Delete And Rename 
Author Message
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14822
Location: Home sweet home!
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:
git remote add shared.branches https://github.com/fredcooke/freeems-temp.git

And then:
Code:
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!


Tue Oct 29, 2013 7:25 pm
Profile WWW
Moderator
User avatar

Joined: Tue Jan 15, 2008 2:31 pm
Posts: 14822
Location: Home sweet home!
FWIW, this is how you delete a branch in Git:

Code:
git push <remotename> :<branchname>

Or this for more than one:
Code:
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:
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!


Tue Oct 29, 2013 7:43 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software for PTF. ColorizeIt.