Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jan :rust: :ferris:
@janriemer@floss.social  ·  activity timestamp yesterday

@sirhc Yes! git reflog is love! ❤️

Another useful workflow:

Sometimes you just want to have the exact same version of a particular remote branch locally (e.g. because the local branch is totally messed up for whatever reason). In that case, one can do:

git fetch origin
git reset --hard origin/main

...given that remote is called origin and current local branch is main (tracking origin/main).

#git

  • Copy link
  • Flag this post
  • Block
sirhc
@sirhc@fosstodon.org replied  ·  activity timestamp 7 hours ago

@janriemer ya! I use that one alllll the time on my main branches. Very useful!

  • Copy link
  • Flag this comment
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login