Gifted Minecraft
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Luis Norambuena@programming.dev to Git@programming.devEnglish · 9 months ago

Git: avoid reset --hard, use reset --keep instead

adamj.eu

external-link
message-square
8
fedilink
56
external-link

Git: avoid reset --hard, use reset --keep instead

adamj.eu

Luis Norambuena@programming.dev to Git@programming.devEnglish · 9 months ago
message-square
8
fedilink
Git: avoid reset --hard, use reset --keep instead - Adam Johnson
adamj.eu
external-link
When I started learning Git, I found many references covering two ways to undo commits with git reset:

via https://fosstodon.org/@adamchainz/113069875974994637

  • FizzyOrange@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    9 months ago

    Not many people back up continuously, so this is still useful.

Git@programming.dev

git@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !git@programming.dev

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

Resources

  • Official Git project site
  • Pro Git book

Rules

  1. Follow programming.dev rules
  2. Be excellent to each other, no hostility towards users for any reason
  3. No spam of tools/companies/advertisements. It’s OK to post your own stuff part of the time, but the primary use of the community should not be self-promotion.

Git Logo by Jason Long is licensed under the Creative Commons Attribution 3.0 Unported License.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 5 users / day
  • 5 users / week
  • 10 users / month
  • 423 users / 6 months
  • 1 local subscriber
  • 3.43K subscribers
  • 154 Posts
  • 398 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • canpolat@programming.dev
  • Jason Novinger@programming.dev
    cake
  • BE: 0.19.9
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org