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”

Ric,
@Ric@awscommunity.social avatar

@slink yeah tracking is what I mean, it would be nice though wouldn’t it

slink,
@slink@fosstodon.org avatar

@Ric imho no. you can use links in a readme or whatever if you want references.

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/

adamsdesk,
@adamsdesk@fosstodon.org avatar

@tripplehelix Happy to hear you found this useful 😀.

adamsdesk,
@adamsdesk@fosstodon.org avatar

Thank you @bbelderbos for the cool idea.

amyfou, to Mac
@amyfou@lingo.lol avatar

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

Linkshaender,
@Linkshaender@bildung.social avatar

@amyfou forst thing I have to do on a new repo is adding .DS_Store to .gitignore 🤬
At least for removable or networked folders there’s a cure: https://www.techrepublic.com/article/how-to-disable-the-creation-of-dsstore-files-for-mac-users-folders/

amyfou,
@amyfou@lingo.lol avatar

@Linkshaender if only we'd known on creation of this repo 😿

thank you for this from all of us working on this dingdang project!

💻 💞

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. 😎

adamchainz,
@adamchainz@fosstodon.org avatar

@bbelderbos GitHub CLI: gh repo view --web

Also has jump to the PR for the current branch: gh pr view --web

bbelderbos,
@bbelderbos@fosstodon.org avatar

@adamchainz interesting, thanks

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.]

enobacon,
@enobacon@urbanists.social avatar

@Andres4NY love doing git blame and seeing a commit you recognize from when whoever turned the repository upside down and you need to run the blame again with that number^^ 😂

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

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