Avatar Edgar González

  • Random
  • Archive
  • RSS

Git pull from a wrong branch?

If you’re working in your feature-branch:

git checkout feature-branch

and by mistake you pull from a wrong branch (usually master or develop):

git pull origin different-branch

You can fix it with this:

git reset --hard origin/feature-branch
    • #git
  • 8 months ago
  • 4
  • Comments
  • Permalink
  • Share
    Tweet

4 Notes/ Hide

  1. cristi-phillips reblogged this from edgar
  2. carp89d liked this
  3. edgar posted this

Recent comments

Blog comments powered by Disqus
← Previous • Next →

Portrait/Logo

About

When I'm not spending time with Jessica and my kids, I build web applications. Rails developer, believer of Agile Development and Lean startups. NoSQL enthusiast.
CTO and Lord of the API at Piictu

Me, Elsewhere

  • @edgar on Twitter
  • Facebook Profile
  • edgargonzaleznetve on Youtube
  • egg on Flickr
  • edgar on Foursquare
  • My Skype Info
  • Linkedin Profile
  • edgar on github

Twitter

loading tweets…

  • RSS
  • Random
  • Archive
  • Mobile

Effector Theme by Carlo Franco.

Powered by Tumblr