lemmy.net.au
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
codeinabox@programming.dev to Git@programming.devEnglish · 18 days ago

Git: --fixup --autosquash and GIT_SEQUENCE_EDITOR

dev.karltryggvason.com

external-link
message-square
0
fedilink
1
external-link

Git: --fixup --autosquash and GIT_SEQUENCE_EDITOR

dev.karltryggvason.com

codeinabox@programming.dev to Git@programming.devEnglish · 18 days ago
message-square
0
fedilink
A while back a colleague told me about the --fixup option for git commit and its cousin --autosquash. I’ve long been a proponent of squashing and fixing up commits; it means you can commit work earlier which in turn means less chance of data loss as well as smaller diffs being easier to reason about. With the fixup and autosquash options you do the re-organising work up front and save yourself the manual re-ordering of commits in the editor (no more of the vim yy, dd p tango).
alert-triangle
You must log in or register to comment.

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.

  • 14 users / day
  • 14 users / week
  • 14 users / month
  • 14 users / 6 months
  • 0 local subscribers
  • 4.71K subscribers
  • 50 Posts
  • 0 Comments
  • Modlog
  • mods:
  • Ategon@programming.dev
  • canpolat@programming.dev
  • Jason Novinger@programming.dev
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org