Lemmy: Bestiverse
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
RSS BotMB to Hacker NewsEnglish · 10 days ago

Staging patches with Git add -p

www.simonholywell.com

external-link
message-square
1
link
fedilink
2
external-link

Staging patches with Git add -p

www.simonholywell.com

RSS BotMB to Hacker NewsEnglish · 10 days ago
message-square
1
link
fedilink
Staging patches with git add
www.simonholywell.com
external-link
Using git add -p to interactively stage specific parts of a file allowing for more precise control over commits in git. It provides a walkthrough on how to split hunks for granular commit control, ensuring that only desired changes are staged. The post emphasizes the utility of this approach in enhancing commit precision and managing contributions more effectively in git.

Comments

alert-triangle
You must log in or # to comment.
  • jbrains@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    2
    ·
    10 days ago

    Also use lazygit, which makes this easy to anyone already comfortable with vi.

Hacker News

hackernews

Subscribe from Remote Instance

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: !hackernews@lemmy.bestiver.se
lock
Community locked: only moderators can create posts. You can still comment on posts.

Posts from the RSS Feed of HackerNews.

The feed sometimes contains ads and posts that have been removed by the mod team at HN.

Source of the RSS Bot

Visibility: Public
globe

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

  • 591 users / day
  • 1.64K users / week
  • 3.66K users / month
  • 9.69K users / 6 months
  • 2 local subscribers
  • 5.28K subscribers
  • 58.5K Posts
  • 31.3K Comments
  • Modlog
  • mods:
  • patrick
  • RSS Bot
  • BE: 0.19.15
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org