imrehg, to random
@imrehg@fosstodon.org avatar

This happens when I'm thinking more of the tools of the trade, in preparation of actually doing the trade.

https://gergely.imreh.net/blog/2024/05/git-login-and-commit-signing-with-security/

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ Yay, my force push blog post was featured in this week’s @pythonbytes ! 🥳

https://pythonbytes.fm/episodes/show/384/force-push-lightly

adamchainz, to python
@adamchainz@fosstodon.org avatar

🐍♦️ Use Git to pass pytest a list of all modified test files:

pytest $(git diff --name-only '/test_.py')

Adjust the pathspec (Git’s “glob” syntax) if you have a different test file naming convention.

joeyh, to random
@joeyh@hachyderm.io avatar

now considers a symlink to "git~1" something git fsck should warn about, on Linux, because on Windows, that happens to be a way to refer to the .git directory.

rotfl

joey@darkstar:/tmp/foo>ln -s git1 foo
joey@darkstar:/tmp/foo>git add foo
...
joey@darkstar:
/tmp/foo>git fsck
Checking object directories: 100% (256/256), done.
warning in blob 086654741cca64b19ba88286fce998d933897870: symlinkPointsToGitDir: symlink target points to git dir

tomodachi94, to random
@tomodachi94@floss.social avatar

What's the Git GUI of choice for Git newbies nowadays? I'm trying to help out someone who wants to contribute to a GitHub project.

craigbro, to random
@craigbro@emacs.ch avatar

Recent CVE in allowing RCE when cloning a repo, see https://github.com/git/git/security/advisories/GHSA-8h77-4q3w-gfgv

Note it says, "As always, it is best to avoid cloning repositories from untrusted sources."

Now consider how many languages will clone a repo of a transitive dependency, or direct dependency at time of dep resolution -- often before any dep analysis/presentation tools could give you a means to evaluate the transitive git deps.

Like , one of my favorites. I have not review dep resolution/fetch code in other languages, but it seems that they should all heed the advice in that advisory.

tmaz, to random French
@tmaz@piaille.fr avatar

Le saviez-vous ?
Git ≠ Github

Vous pouvez versionner votre code sans travailler gratuitement pour les actionnaires de Microsoft et compagnie.

Par exemple, et notamment pour vos projets libres : https://codeberg.org/ (c'est une asso berlinoise)

➡️ @Codeberg

nobodyinperson, to random
@nobodyinperson@fosstodon.org avatar

🍿

> git annex assist
...
symlinkPointsToGitDir: symlink target points to git dir
remote: fatal: fsck error in pack objects
error: remote unpack failed: unpack-objects abnormal exit

IIUC, :git: implemented something that uselessly breaks :gitannex: / :datalad: compatibility on the remote side, amazing! 🤦

https://github.com/git/git/commit/a33fea0886cfa016d313d2bd66bdd08615bffbc9

Initial report:

https://git-annex.branchable.com/forum/Strange_symlinkPointsToGitDir_error/#comment-12ed3e72e46de9b086da51455f20b26b

@joeyh @mih @chrysn

mmarif, to android
@mmarif@mastodon.social avatar

GitNex 5.5.0 is now OUT with a new comment UI, the ability to update your profile avatar, the option to insert notes to issues/PRs/releases, and many other improvements.

We have also reached 400 stars on . Thanks to all for supporting GitNex all the way.

With the upcoming 6.0.0 release, GitNex will have different version numbers, such as 6.0.0, 7.0.0, and so on.

I hope you enjoy the new release and find it even more productive.

New comment UI

danielfeldroy, to random
@danielfeldroy@fosstodon.org avatar
veit,
@veit@mastodon.social avatar

@danielfeldroy Some of git's default settings are not very user-friendly and are probably due to backwards compatibility. Therefore, my git configuration has become more and more extensive over time, including
[pull]
rebase = interactive
[commit]
cleanup = scissors
[rebase]
autostash = true
[push]
autoSetupRemote = true
followTags = true
[rerere]
enabled = true

leanpub, to ComputerScience
@leanpub@mastodon.social avatar

Git y GitHub desde cero by Brais Moure is free with a Leanpub Reader membership! Or you can buy it for $9.99! http://leanpub.com/git-github

adamchainz, to random
@adamchainz@fosstodon.org avatar

♦️ There is a safer alternative to 'git push --force'!

🫸 Use --force-with-lease and --force-if-includes to restrict force pushes so that they don’t unintentionally overwrite commits pushed by others.

Explained in my post: https://adamj.eu/tech/2023/10/31/git-force-push-safely/

heptapod, to random
@heptapod@fosstodon.org avatar
dxzdb, to random
@dxzdb@mastodon.social avatar

@ddemaree Thanks for your excellent “Git for Humans" book!

This was the first git book short enough (and well written enough) that I actually read it all! One of the others was Pro-Git so that's probably my fault 😆

opdavies, to random
@opdavies@mastodon.social avatar
adamsdesk, to linux
@adamsdesk@fosstodon.org avatar

Manage Your Git Stashes with Ease In The Command Line

Improve your git stash management experience in the command line with one command to perform basic tasks of list, show, show -p (diff), pop or drop.

https://www.adamsdesk.com/posts/manage-git-stash-command-line-fzf/

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 🤕 🥊 💪

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