• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Advice to avoid Xcode-Git Train Wrecks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Advice to avoid Xcode-Git Train Wrecks


  • Subject: Advice to avoid Xcode-Git Train Wrecks
  • From: Jerry Krinock <email@hidden>
  • Date: Sat, 19 Mar 2016 05:25:10 -0700

Yesterday I had a train wreck, possibly similar to one I had a few months ago, after a huge merge which involved deleting a hundred or so files and adding a couple humdred more.  This happened when I was on my “feature” branch and clicked in the Xcode menu: Source Control > Merge into branch… > master.  The result was that both branches looked like master, and the “feature” branch had staged a big commit.

So I trashed the local repository and re-cloned from the remote.  This time I switched to the master branch first and did Source Control > Merge from branch > <feature>.  Ant this time, it worked fine.

The first time, I don’t know, maybe I switched branches too quickly, before git was done manipulating all of those files, and Xcode stepped on itself somehow.

Just to preempt the discussion, yes I realize that there are other git client apps, and yes I’ve tried them.  And yes there is the git command line, and yes I use that frequently, whenever Xcode’s Source Control gives me some kind of crap, or for more complicated operations.  But that Source Control menu is so handy, I like to use it whenever possible.  There is only one other person on this team, so I usually don’t need to be a Git acrobat.

Lessons learned, I’m assuming to be correct for now:

• Do *not* use Merge into Branch….
• *Do* switch to the destination branch, maybe wait several minutes, then Merge from Branch….


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Advice to avoid Xcode-Git Train Wrecks
      • From: Jens Alfke <email@hidden>
    • Re: Advice to avoid Xcode-Git Train Wrecks
      • From: Marco S Hyman <email@hidden>
    • Re: Advice to avoid Xcode-Git Train Wrecks
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: Xcode 7 can't build "Command Line Tool" projects (Carl Hoefs)
  • Next by Date: Re: Advice to avoid Xcode-Git Train Wrecks
  • Previous by thread: Re: Any way to stop really annoying "jumping" when using find?
  • Next by thread: Re: Advice to avoid Xcode-Git Train Wrecks
  • Index(es):
    • Date
    • Thread