1370
Ctrl+Alt+T (lemmy.world)
submitted 7 months ago by yesman@lemmy.world to c/linuxmemes@lemmy.world
you are viewing a single comment's thread
view the rest of the comments
[-] dQw4w9WgXcQ@lemm.ee 29 points 7 months ago

Intellij: Has a modern GUI for Git with code cleanup, import optimization and visualization of changes.

Me: Open terminal, 'git commit -m "wrote code" && git push'. Then realize I forgot to add half of the files, so I make another commit. Then realize I forgot to cleanup bad indents, so I make another commit. Then realize my code doesn't even build, so I make another commit, etc.

[-] traches@sh.itjust.works 6 points 7 months ago
[-] foobaz@lemmy.world 6 points 7 months ago

git commit --amend --no-edit

[-] independantiste@sh.itjust.works 2 points 7 months ago

The only Git GUI that I find actually lets me do the basics in a simple way is GitHub desktop. It allows me to quickly see a diff of the changes, select a few lines or a chunk or all the file, it manages stashes and conflicts for me which is like 98% of my usage. Otherwise I use gitui or the git cli for anything more complex than committing and switching/merging branches.

[-] kdm@lemmy.world 7 points 7 months ago* (last edited 7 months ago)

I’ve started using LazyGit recently and I love it. It runs in CLI and essentially just maps the git commands to keyboard shortcuts. Really easy to use and learn, definitely increased my productivity

[-] recarsion@discuss.tchncs.de 3 points 7 months ago

And there's a neovim plugin for it. It's my favorite git client.

[-] nickwitha_k 1 points 7 months ago

I tried that but couldn't figure out custom commic message templates to make it play nice with gerrit, so, I went back to the trusty CLI.

[-] fleet@lemmy.ca 1 points 7 months ago

Magit for Emacs is amazing. It helped me understand git.

this post was submitted on 10 Dec 2023
1370 points (98.2% liked)

linuxmemes

19825 readers
1076 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS