b0rk, (edited ) to random
@b0rk@jvns.ca avatar

been thinking about this very common git workflow and how git doesn't do much to help you ensure that if you're using this workflow:

a) you never commit to your local main branch directly
b) you regularly pull from origin/main to keep your local main branch up to date

you just need to be careful

branch protection on github/gitlab helps with this, but I don't think there's much in git itself

stsquad,
@stsquad@mastodon.org.uk avatar

@b0rk I noticed while setting up my new machine that has a git-hub package that purports to add a command line interface. was always meant to have "porcelains" above it that used the underlying primitives to push and pull branches. I guess that's the layer you'd want to integrate stuff like that. can be extended to access forge details and do code review.

meliache, (edited )
@meliache@digitalcourage.social avatar

@b0rk @petes_bread_eqn_xls I don't worry too much with , usually it allows you to recover from mistakes. There's always reflog, cherrypick, rebase and friends to move commits around. So I think the "I need to be careful" mindset is counterproductive, though I understand it when you are not confident with the above tools. Of course upstream main should be protected, don't want to be messing with that.

Btw, for has a "spin-off" command which creates a new branch from the current branch and resets the current branch to upstream. Found that super useful when I made a few commits on main, forgetting to create a feature branch. Could have solved this otherwise but a dedicated command saved some time. I think git doesn't optimize its CLI for UX because it expects third parties to build better porcelains for it.

stewoconnor, to github
@stewoconnor@hachyderm.io avatar

is SO GOOD. I'm constantly blown away by how much of a time saver it is having copilot working.

I'm also super amazed at how good it is at writing code in since it is a language with very little software written in it to begin with, coupled with the fact that practically NONE of it is ever checked into github, so there is likely very little code in the training set

stewoconnor,
@stewoconnor@hachyderm.io avatar

I had been using emacs pretty much daily from 1991 to 2022. In 2020 if you had asked me if I would ever move away from emacs I would have said "probably never".

However today I find that I pretty much spend all my time in because I want both copilot and always working, and that's non-trivial in emacs these days

The one thing I will do with consistently these days is use for any non-trivial git operations. I've never seen a client that rivals magit.

tarsius, to random

🎺​ has been downloaded four million times from . 🥳​

https://melpa.org/#/magit

tarsius, to random

😄🤗🤠🤓😗🤩😶
😎😋🦆🙃🤪😀[+400]

louis,
@louis@emacs.ch avatar

@tarsius Welcome at Emacs.ch! It is so great to have the maintainer of our beloved here. I'm really honoured. 🚀​

brokenix, to random
@brokenix@emacs.ch avatar

#magit #phone indispensable

image/png

bram85, to emacs
@bram85@emacs.ch avatar

Here's a function using #magit to show the diff of the current buffer since a certain date/time.

My use-case: I put my work notes in a single org file. When our daily standup starts I can quickly review what I worked on / wrote down in the last 24 hours.

https://apps.bram85.nl/git/bram/gists/src/commit/cb4c371e5ce68ba89afce0ae020e6b6f4161d237/gists/magit-diff-range-current-buffer.el

#emacs

louis, (edited ) to random
@louis@emacs.ch avatar

I've seen a lot of pro-#Fossil, anti-#Git discussion recently.

Not that I love Git, but it does the job and almost all deployment platforms have support for Git only.

And, am I the only one who needs a staging area because I have to commit only a part of my changes? Often even line-based.

And, sometimes I want to squash 20 ugly commits into a single one, destructively changing the commit history. Really!

And, sometimes I need a hosting platform for a project and there is not a single serious one for Fossil. What's the point in using Fossil when I have to do a Git-export?

And, most importantly, there is #Magit :blobcatmeltlove:​.

So ... although I can feel the love for Fossil, it simply doesn't work for most of my use cases.

robinlovelace, (edited ) to datascience
@robinlovelace@fosstodon.org avatar

R users and developers: which integrated development environment do you use for writing R code?

plantarum,
@plantarum@ottawa.place avatar

@robinlovelace , which includes the incomparable , (git), and (editing remote files, running remote processes), along with good support for and

ericsfraga, to emacs
@ericsfraga@fediscience.org avatar

I am so proud of myself 🙂: I have just used #git #CherryPick for the first time ever and, drum roll, it worked! Did it via the command line as for some reason I get lost sometimes using #magit in #Emacs even though magit is fantastic for the usual activities.

maralorn, to random
@maralorn@chaos.social avatar

I consider this to be obvious, but the correct way to design (laptop/desktop) UIs for most applications is a slick, snappy graphical UI with completely keyboard-based and discoverable navigation.

Interestingly I know no application which does this, although it is certainly doable.

Atemu,
@Atemu@darmstadt.social avatar

@maralorn

Note that Emacs is far more than a large window with monospace text. GUI Emacs (the preferred way to use it) supports variably sized fonts (both horizontal and vertical) images and more.

Emacs users prefer text-based interactions as they're easy to navigate with a keyboard but even text-based UIs can do quite a bit more than you might expect.
Check out (heh) for example.

Whether Emacs' UI is "slick" is subjective but it's certainly more than a monospaced grid of characters.

nik, to random
@nik@nkantar.social avatar

#Lazygit is five years old. I’ve been using it for a few years, and it’s made interacting with #Git so much more convenient. I used #vimagit (inspired by a coworker’s use of #Magit) before it, and the official Git #CLI before that.

Love me a good tool!

Links:

masukomi, to emacs
@masukomi@connectified.com avatar

A ⚠️ icon appeared in my when i opened a file with a conflict.

I clicked it out of curiousity and ... wow. I didn't know this was here

(still newb. so much to learn)

pmaohj,

@masukomi Have you tried ?

pmaohj,

@masukomi I alternate between magit-blame and vc-annotate. They seem to have orthogonal functionality. My ability to do CLI git is abysmal -- I can't remember any of the options or their correct order. makes that a non-problem. The ability to line-by-line commits within hunks in magit is very useful. I have no idea how one would do that efficiently on the command line.

happy emacsing!

adamchainz, to random
@adamchainz@fosstodon.org avatar

There is only one way to level up as a user and we all know which one 😂

nshephard,
@nshephard@fosstodon.org avatar

@adamchainz Yep 😉

vindarel, to Lisp French
@vindarel@framapiaf.org avatar

Lem news: I ran my first interactive git rebase inside Lem 😎 (lots of work remaining)

https://lem-project.github.io/lem-page/

piturnah, to rust

Hey everyone!!! I just released a really important usability update for #Gex, which is my #Rust #OSS project for #git interaction inspired by #Magit

Finally, we have scrolling! This is a feature that should've been added a long time ago, but here it is. Spent a long time tweaking it to try and get it to feel "right" so I'd love to know what you think!

A video where the software

mairin, to random

what is the point of version control that is so hard to use it's like you dont even have version control at all?

stares at git

pmaohj,

@mykhaylo @joncruz @mairin @Precz @edsuom I second this opinion. I was baffled by git until I started using . Now anything is possible. https://magit.vc/

mykhaylo, to emacs
@mykhaylo@fosstodon.org avatar

My third package is on ! Use heroku.el to as easily manage your instances, as you manage git with . Transient is the most efficient interface possible! You can tail logs, run commands like bash and python, restart and promote dynos, connect to Heroku Postgres with using built-in Emacs sql functionalityand more!

https://github.com/licht1stein/heroku.el

natty, to random
@natty@astolfo.social avatar

I feel like remote editing will always just, no matter what

SSH terminal editor: gets weird on a shared server, can be annoying with some latency
editors that boot up a daemon: the daemon, often somehow really slow and clunky
SSHFS: you don't have the entire environment
anything like remote desktop: why ​:haggard:​

debacle,
@debacle@framapiaf.org avatar

@lispi314 @natty

I'm using for "everything". IMHO, it works, but it also has its issues. Esp. it can be horribly slow sometimes, and its interactions with other packages are strange for me, i.e. .

shanecelis, to random
@shanecelis@mastodon.gamedev.place avatar

Use magit on your non-standard git directories like your dotfiles.

https://emacs.stackexchange.com/a/77219/40546

entilldaniel, to random

#magit in #emacs is by far the best git interface I've used.

tarsius, to random

I've just released Transient v0.4.0. https://emacsair.me/2023/05/10/transient-0.4/

aksharvarma, to random
@aksharvarma@mathstodon.xyz avatar

I'm almost out of packages that are plug-and-play. So today I'm rehashing an old twitter thread about , THE porcelain for .

First, let me talk about my impression of git pre and post magit:

  • Pre-Magit, I wasn't happy/good at using git.
  • Post-Magit, I believe all git commands are clunky & unwieldy (especially in comparison to Magit).

The closest that my friends have come to making git better is with copious autocomplete setups (I think it was tmux, fzf, and a few other things). But I still say that magit is probably the lower bound on how nice it can be.

Eg: stage+commit in a wip branch, switch to main, pull from remote, merge wip to main, push to remote is:
S, c c, b b ⏎, F p, b b ⏎, m m ⏎, P p.
Done, in just 16 key strokes. At most there will be a couple of keystrokes extra before each enter if there are multiple branches to select from (but that would be true of any tool).

Not only do the keystrokes feel like the lower bound, the default choices are extremely sane.

Finally, it is not just the minimal keystrokes, it is also the extent of information that magit exposes and the amount of control it provides. Until I started using magit, I didn't know that beyond the usual amend to an earlier commit, you could also expand it (add changes, same msg) and reword it (change msg, no changes). Further, magit also exposes fixup and squash right in the commit submenu (see screenshot). In git, I would have no way of knowing what to do.

Magit is the git porcelain that makes using git feel like doing magic.

emaksovalec, to random Slovenian
@emaksovalec@emacs.ch avatar

I'm writing a large document in #latex in #emacs and I track my changes with #magit. Is there a way to view to view Levensthein edit distance or similar instead of line diffs? MS Visual Studio actually does this quiet wonderfully despite being otherwise less than wonderful.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines