Pivotal Labs

Main menu

Skip to primary content
Skip to secondary content
  • About
  • Case Studies
  • Team
    • Executives
    • Locations
      • San Francisco (HQ)
      • Boston
      • Boulder
      • Denver
      • London
      • Los Angeles
      • New York
  • Community
    • Blogs
    • Tech Talks
    • Events
  • Careers
    • Lifestyle
    • Principles & Practices
    • Benefits
    • FAQ
    • Apply
  • Tools
  • Contact
    • Press Room
    • Press Releases
    • In The News
    • Press Kit
  • All
  • Labs
  • Standup
  • Tracker

Election Day Special!

Sarah Mei
Tuesday, November 2, 2010

Help:

We made a branch in git called “–track” by accident, and now we can’t get rid of it. git thinks it’s a command-line argument, even when it’s in quotes.

Here’s the command what did it:

$ git checkout -b --track origin/actual_branch_name
Branch --track set up to track remote branch refs/remotes/origin/actual_branch_name.
Switched to a new branch "--track"

Consensus: kill it through RubyMine or gitX. There is also a way through the command line:

$ git branch -d -- --track

…but make sure you get the dashes in all the right places.

Interesting:

  • reset after tail – sometimes, if your PS1 has colors (or square brackets, or … ?) you can lose your Terminal after tailing a file. To get it back, type reset, which should work even if you can’t see it echoing. You may need an extra return before it.

  • The Giants seem to have won! There’s a parade tomorrow, right in front of the office. If you’re coming for the tech talk, leave extra time as streets will be closed and they’re expecting a crowd.

  • 0 Shares
  • Share on Facebook
  • Share on Twitter

2 Comments

  1. W. Andrew Loe III says:

    I get the terminal issue without fail when tailing development log, but not many other types of files. I think it must be improperly closed colors.

    November 2, 2010 at 10:05 am

  2. Malc says:

    Using `–` is a good thing to know, and is applicable to any shell command, not just git. It means ‘nothing after this is an option’.

    I used to used it as part of my questionnaire for employing sys admins: ‘How would you delete a file called `-rf *` in your home directory?’

    November 2, 2010 at 1:46 pm

Add New Comment Cancel reply

Your email address will not be published.

Sarah Mei

Sarah Mei
San Francisco

Recent Posts

  • Standup 11/5/2010: Happy Friday Edition
  • Standup 11/4/2010: sweeping-up-the-ticker-tape edition
  • Oh look a parade!
Subscribe to Sarah's Feed

Author Topics

agile (7)
arel (1)
bundler (2)
cimonitor (1)
heroku (1)
git (2)
jasmine (1)
  • About
  • Case Studies
  • Team
  • Community
  • Careers
  • Tools
  • Contact
  • Labs
  • Events

Contact Us

contact@pivotallabs.com
+1 415-77-PIVOT
TwitterLinkedInFacebook

Pivotal Tracker

Tracker is the award-winning agile project management tool that enables real-time collaboration around a shared, prioritized backlog.
Visit pivotaltracker.com >