anthony_steele, to CSharp
@anthony_steele@dotnet.social avatar

Automating in code on commit with format, and .NET

https://www.anthonysteele.co.uk/HuskyAutoformat

When I wrote this about a month ago, I didn't geta round to linking it from the index https://www.anthonysteele.co.uk/

So, now I have.

This is detailed, step-by-step instructions of getting this set up, with screenshots to help with commands and outcomes. An "idiot's guide" if you like, because I was that idiot.

Ric, to opensource
@Ric@awscommunity.social avatar

What we need is cross forge/hub forking! When do we want it now!

season 1 nbc GIF by The Good Place with the main character saying “ah, fork me”

badrihippo, to random
@badrihippo@fosstodon.org avatar

Do we have a for public repos? :git:

Right now my "default" is to go to GitHub, and then maybe GitLab and Codeberg...but that leaves out all the other hosts out there. Once happens we'll need it even more :fedi:

(By the way, I say "git" because that's where most code is, but if other kinds of repos are supported, even better! 🔍 )

adamsdesk, to linux
@adamsdesk@fosstodon.org avatar

Quickly Jump From Local Git Repository to Website

Improve your git workflow with a simple shell function that can quickly jump you from the terminal of a local git repository to the project's website.

https://www.adamsdesk.com/posts/open-repository-website/

amyfou, to Mac
@amyfou@lingo.lol avatar

Hello friends I am now the mortal enemy of every one of these gd .DS_Store files 🤕 🥊 💪

bbelderbos, to github
@bbelderbos@fosstodon.org avatar

🚀 Quickly jump from your local repository to its corresponding GitHub page with this handy shell alias! ✨

🔗 Add openrepo to your shell profile or rc file, source it, and now you can simply type openrepo in your terminal to open your GitHub repo. 😎

mobileatom, to random
@mobileatom@flipboard.com avatar
governa, to random
@governa@fosstodon.org avatar
opdavies, to random
@opdavies@mastodon.social avatar
vincentbiret, to random
@vincentbiret@hachyderm.io avatar
Andres4NY, to random
@Andres4NY@social.ridetrans.it avatar

I wish that when I reverted a revert, #git was smart enough to attribute things to the original author.

That is, person A does a commit; git blame foo.c shows the lines as being changed by person A. Person B reverts that commit (temporarily), and then later on person B reverts the revert (thereby putting person A's changes back in). But now when you git blame foo.c, the line change is from person B.

[I know you can manually set --author or whatever, but I feel like it should be automatic.]

leanpub, to devops
@leanpub@mastodon.social avatar

The Unix Workbench by Sean Kross is free with a Leanpub Reader membership! Or you can buy it for $7.99! http://leanpub.com/unix

dxzdb, (edited ) to random
@dxzdb@mastodon.social avatar

git rant…

with Xcode 14 I could hit ⌘⌥C, immediately type a commit message, then hit ⌘-return to complete the commit. git and I were both happy doing commits quickly.

with Xcode 15 I apparently have to first mouse click into the spot for the commit message... then I have do another mouse click on the Commit button.

Is there a way to set this back to the previous behavior?

aeveltstra, to random
@aeveltstra@mastodon.social avatar

and other source control repo maintainers: please add a blurb to your readme that explains what it is your product is supposed to do. Please start with explaining what problem it solves.

zeroiee, to programming
@zeroiee@techhub.social avatar

A clean Git history is the key to successful teamwork and quick bug fixes. Errors can only be successfully tracked down if it is always possible to trace when and where code was changed by whom and for what reason.

🥴 However, in the rush of the battle, the changes that are packaged in a commit are sometimes not taken very seriously. Who has never experienced this? A change that is actually unrelated to the current work package has made it into the commit because the file has already been saved temporarily.

💡The solution: With an "interactive add" (git add -i), you can pack partial changes ("hunks") into a commit and specify line by line what should be included in the next commit.

:git: "Staging patches": https://git-scm.com/book/en/v2/Git-Tools-Interactive-Staging

skerit, to random
@skerit@elevenways.be avatar

Yikes, I thought I lost hours of work but it was just git-stashed under the totally wrong description. 🥵

amoroso, to random
@amoroso@fosstodon.org avatar

I know, Git is a mess. But, since we're stuck with it, we may as well try to learn how it works with resources like this, which aims to lead to some form of Git enlightenment.

https://think-like-a-git.net

root42, to random
@root42@chaos.social avatar

Is there a way to resolve #git cherrypick conflicts purely on the command line, without using a merge tool by saying „use theirs“? Or „keep upper“?

civodul, to random
@civodul@toot.aquilenet.fr avatar

Finn Landweber wrote a pretty cool variant of the ‘guix git authenticate’ method:
https://codeberg.org/flandweber/git-verify

Highlights: Haskell instead of Scheme, JSON instead of sexps, SSH instead of OpenPGP, additional features such as per-file authorizations and unsigned merge commits.

👍

#Git

kernellogger, to linux
@kernellogger@fosstodon.org avatar

A question for experts on bisecting the :

Assume someone runs into a regression when updating from 6.1.90[1] to 6.6.30 that needs bisecting. What do you suggest:

  • Check manually which mainline release (e.g. 6.2, 6.3, ...) introduced the problem and afterwards bisect between that and the previous release.

  • Bisect straight between 6.1 and 6.6.30.

1/ I guess I would definitely go for…

[1] let's assume that 6.1 was fine for this scenario to keep things simpler

Crell, to programming
@Crell@phpc.social avatar
salcode,
@salcode@phpc.social avatar

@Crell I’m a fan of setting

git config --global pull.ff only

and continuing to use
git pull

Then if I hit the situation from the video where there are new commit(s) on the remote, stops the merge and displays a message. At that point I can decide how to handle it.

Long version at https://salferrarello.com/git-warning-pulling-without-specifying-how-to-reconcile-divergent-branches-is-discouraged/

tom, to Logseq German
@tom@swiss.social avatar

Dear #logseq and #obsodian users,
#git is not a backup system. Store your notes in a reposotory, if you must, but please configure a backup for your notes.

pawelgrzybek, to random
@pawelgrzybek@mastodon.social avatar

After using lazygit for a few days, I am completely sold. It makes working with git really enjoyable!

https://github.com/jesseduffield/lazygit

#git

leanpub, to devops
@leanpub@mastodon.social avatar

Learn Git, Bash, and Terraform the Hard Way https://leanpub.com/b/learngitbashandterraformthehardway by Ian Miell is the featured bundle on the Leanpub homepage! https://leanpub.com

leanpub, to random
@leanpub@mastodon.social avatar

Git Prodigy: Mastering Version Control with Git and GitHub https://leanpub.com/git-prodigy by Ebenezer Don is the featured book on the Leanpub homepage! https://leanpub.com

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