The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
A Typical Day with Git

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Daniel Berger

Posts: 1383
Nickname: djberg96
Registered: Sep, 2004

Daniel Berger is a Ruby Programmer who also dabbles in C and Perl
A Typical Day with Git Posted: May 4, 2010 3:29 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Daniel Berger.
Original Post: A Typical Day with Git
Feed Title: Testing 1,2,3...
Feed URL: http://djberg96.livejournal.com/data/rss
Feed Description: A blog on Ruby and other stuff.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Daniel Berger
Latest Posts From Testing 1,2,3...

Advertisement
~/Repositories/io-extra>git pull
remote: Counting objects: 55, done.
remote: Compressing objects: 100% (31/31), done.
remote: Total 34 (delta 18), reused 0 (delta 0)
Unpacking objects: 100% (34/34), done.
From github.com:djberg96/io-extra
   7edde40..1fcfadc  master     -> origin/master
From github.com:djberg96/io-extra
 * [new tag]         io-extra-1.2.2 -> io-extra-1.2.2
Auto-merging test/test_io_extra.rb
CONFLICT (content): Merge conflict in test/test_io_extra.rb
Automatic merge failed; fix conflicts and then commit the result.

Oh, that's right, I made the real change at home. I just need to blow away the local changes here.
~/Repositories/io-extra>git co test/test_io_extra.rb 
error: path 'test/test_io_extra.rb' is unmerged

I don't want the local file god dammit. Screw it. Kill the file and try to pull the latest.
~/Repositories/io-extra>rm test/test_io_extra.rb 
~/Repositories/io-extra>git pull
You are in the middle of a conflicted merge.

Sigh. Ok, let's try again.
~/Repositories/io-extra>git rm test/test_io_extra.rb
test/test_io_extra.rb: needs merge
rm 'test/test_io_extra.rb'

Fuck you Git:
~/Repositories/io-extra>cd ..
~/Repositories>rm -rf io-extra/
~/Repositories>git clone git@github.com:djberg96/io-extra.git

I know I'm not the only person who's done this dance.

Read: A Typical Day with Git

Topic: IO.writev for Ruby Previous Topic   Next Topic Topic: RubyBuntu -4- Make gedit better than any IDE ;)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use