#GIT
Das #NCSC ermahnt #Git-User und #KMU|s - inside-it.ch https://www.inside-it.ch/das-ncsc-ermahnt-git-user-und-kmus-20230511
Playing around with the deps.dev API I built some simple #git hooks to prevent commit with vulnerable dependencies.
Why do nerds always do this; overcomplicate everything?
Generating public/private key pairs isn't simple, but it's pretty common by now. I do it every time I set up #git on a new computer. I do it when I use #PGP. I do it when I #ssh
Nerds were like; "I know let's encode the private key in a series of words so people can memorize them" and now you've got two private keys!
#Bitcoin was already kinda complicated, and now #wallets are 100x more complicated!!!
How to Remove Local Git Branches by Creating Git Aliases
https://www.makeuseof.com/git-aliases-remove-local-branches/?utm_medium=erik.in&utm_source=mastodon
It's been a while since I've used GitLab - I just logged a few issues on a project hosted on gitlab.com and I had completely forgotten how much nicer the experience is compared with Github.
Even for simply logging a bug report - the issue tracking experience feels lighter and less cumbersome.
Github these days feels like bunch of teams desperately fighting over who's feature should take priority - where as GitLab feels much more like a single product experience.
I'm (clearly) no UX person so there's probably a better term for it - but the UI feels much less hostile than Github.
It's a real shame that GitLab was showered in VC funding and had to significantly raise prices to meet profit demands.
Hacer que git no pida contraseña. https://myblog.clonbg.es/#/git-password https://clonbg.es #Git

Protecting git Credentials Used in Automated Scripts
~~
Prevent writing git credentials to disk and limit the time stored in memory with git credential.helper cache options
~~
by Teri Radichel | Jun 5, 2023
#git #credentials #automation #cache
https://medium.com/cloud-security/protecting-git-credentials-used-in-automated-scripts-d3724cbd4736
Comandos de git que yo utilizo. https://myblog.clonbg.es/#/comandos-git https://clonbg.es #Git

Git Merge – The Definitive Guide https://www.freecodecamp.org/news/the-definitive-guide-to-git-merge/
#git
I moved the jvarkit code, from google-code to github more than 10 years ago. https://github.com/lindenb/jvarkit/commit/1a94cc046d1d7b427836eface0d6af9390cc8925 #bioinformatics #git #github #jvarkit #code #java
what's a good lightweight self-hosted #git http frontend? I want to mirror all my repos in my own site and wondering what to use. Just to browse and clone
Git is my buddy: Effective #Git as a solo developer
https://mikkel.ca/blog/git-is-my-buddy-effective-solo-developer/
Wednesday Links - Edition 2023-06-07
https://dev.to/0xkkocel/wednesday-links-edition-2023-06-07-256p
#java #jvm #springboot #git #email #hotspot
Tiny #git tip - quickly switch back to the previous branch, without having to look up its name with:
git switch -
Similar to `cd -` for directories!
💡 TIP: Discard changes recently made to a file in your git repository
cd REPOSITORY
git checkout -- docs/README.rst

@kevin This morning, my base #esp32cam configs were each 200 lines or so and half of my editing bandwidth was spent comparing it to the templates to make sure it was still up to date.
As of now, they are each 26 lines, easy to compare, and I even added the captive portal just in case I mess up the credentials and knock a bunch offline before I notice...
...again.
(And the configs are in #git)
How do you build a #CICD pipeline for #containers? I love this #NoSlides talk. "Level-up your #DevOps with #GitHub Actions and #Kubernetes. Best practices for: #Git, #Docker, #DevOps, #Containers. Join us #online at #Pittsburg #dotNET https://www.meetup.com/pghdotnet/events/293854849/, code: https://github.com/robrich/levelup-devops-github-actions-kubernetes

to @edsu's point about github from a noted Github hater (me) (and git hater even but I'm gonna say nice things):
we took what was a really powerful distributed version control system...and decided to centralize it again on a platform that---amongst other things---sells software to the fucking immigration cops![1]
great job y'all. really smashing, good work.
https://inkdroid.org/2023/06/04/copilot/
Clear saved credentials from #git for a given user/host:
$ echo url=https://tif@github.com | git credential reject
Has anyone made the joke yet that Origin is a #git repo, because "git push(/pull/fetch) origin"? In Future Redeemed, it's even in the sky, like "cloud computing".
Well then.... I just accidentally pushed to main.
Link blog entry for "Git is simply too hard": Git is actually sooo hard. Not just to learn, but also to use consistently. And I say that as a person who used it for probably over ten years. Here’s my thoughts on the matter. (https://changelog.com/posts/git-is-simply-too-hard)
#git, opinion
OK #Bitbucket is currently down :-(
I think I will get some coffee ☕
#sourcecode #git #systemdown #coding #developer #development


Comandos de git que yo utilizo. https://myblog.clonbg.es/#/comandos-git https://clonbg.es #Git

Solving #Git conflicts with #Vim is easy!
🚀 Plugin (neovim): https://github.com/akinsho/git-conflict.nvim
It took just 3 key bindings to resolve the following conflict! 🎉
• c-o -> apply "choose ours" strategy
• ]-x -> go to the next conflict
• c-t -> apply "choose theirs" strategy

Game of Trees 0.89 released https://undeadly.org/cgi?action=article;sid=20230605195502 #openbsd #got #git #versioncontrol #development #programming
Minor but satisfying hack-let OTD. I keep my #UNIX homedir in a #Git repository so all my dot files get versioned for free.
Today, I added my kickstart.nvim fork - https://github.com/feoh/kickstart.nvim as a submodule of that project.
So now I can maintain my #Neovim config separately like I want and also easily merge changes from upstream as they occur. Sweet :)
Mi propio servidor Git gracias a Docker #Git #Programación #Docker https://myblog.clonbg.es/#/gogs-docker https://clonbg.es

Protecting git Credentials Used in Automated Scripts
~~
Prevent writing git credentials to disk and limit the time stored in memory with git credential.helper cache options
~~
#git #credentials #code #security
https://medium.com/cloud-security/protecting-git-credentials-used-in-automated-scripts-d3724cbd4736
Just released version 0.4.0 of https://github.com/networkteam/vignet - a tool to provide an authenticated and authorized REST API to perform patches to a #Git repository.
This will be a crucial piece for integrating #FluxCD as #GitOps in our #GitLab CI to release projects in various environments.
@mkreutzfeldt @BMWK Gesetzesänderungen werden also immer noch nicht mit #git verwaltet... #oneversioncontrolsystemtorulethemall
Install git From Source on Ubuntu
~~
When apt doesn’t give you the latest version on an AWS EC2 Ubuntu instance
~~
by Teri Radichel | Jun, 2023
#git #ubuntu #version #source
https://medium.com/cloud-security/make-git-from-source-on-ubuntu-2cfb8b8b21bb
I used to be a #git hater and notorious user of the nuke & clone method to get me out of jams but after developing the skills to deal with multiple remotes in a single repo it has all kind of come together.
Hacer que git no pida contraseña. https://myblog.clonbg.es/#/git-password https://clonbg.es #Git

Any devs that work with both #GitHub and #Codeberg repos? How are y'all setting up #Git to work between projects on the different sites?
I feel like the simple solution is to create two OS accounts on my Mac and switch between them, one is "Codeberg" work and the other is "GitHub" work.
Or...push everything to GitHub and have it sync over to Codeberg? That seems to completely defeat the purpose.
Or maybe I'm making this too complex. That's been known to happen.
I used to think that having to use a command line was a sign of failure. Some dev was just too lazy to write a GUI for a process and I had to suffer because of it.
Since I started coding in Python (and a bit earlier when I started doing Node.js) I have been using the command line more and more. And now I am even doing my git commits and pushes using it.

Add Repository on EC2 Ubuntu to Get Updated Version of git
~~
Your version of git may be outdated if using the default repositories on an AWS EC2 instance
~~
by Teri Radichel | Jun 3, 2023
#ubuntu #git #version #aws #ec2
https://medium.com/cloud-security/update-ubuntu-on-ec2-to-get-updated-version-of-git-14a13ee754d5

Video: Intro to Version Control using git and RStudio - presentation by Ryan Johnson, data science advisor at @Posit, at @NHSrCommunity
https://youtu.be/qNMOPWT8jSo

Highlights from #Git 2.41 https://github.blog/2023-06-01-highlights-from-git-2-41/
#plantuml ist ein hervorragendes Tool, um #UML #Klassendiagramme deklarativ zu erstellen und diese mit #git zu versionieren. Ich habe in diesem Artikel zusammengetragen, mit welchen Anpassungen die Ergebnisse nahe am UML-Standard bleiben (Überarbeiteter Artikel) #informatikEdu https://oer-informatik.de/uml-klassendiagramm-plantuml

Lovely historical retrospective on #versioncontrol programs by #stackoverflow. Particularly interesting to learn some of the different features some fields need, for example the games industry.
Beyond Git: The other version control systems developers use
https://stackoverflow.blog/2023/01/09/beyond-git-the-other-version-control-systems-developers-use/
I have been using #git for a decade and I still have the feeling I am learning something new about it every week.
This week it is about funny reference name.
One can't push to `refs/branchname` since the C implementation of git requires the reference name to have two levels, jGit accepts them though which leads to interesting corner cases.
Looking at my classmates struggle with #git reminds me of my past self and makes me which git had a beginner mode: You are not allowed to change history, only save it.
The latest #git 2.41.0 release now allows you to delete a few lines from your global configuration which is nice. Here's a commit from my Dotfiles project which explains more: https://github.com/bkuhlmann/dotfiles/commit/7dc6894160ef3f04700560570e741894e842174d
Also, you can let Git calculate how many commits you are ahead/behind on a feature branch (see screenshot). I'm thinking of folding this into my Bash shell prompt and branch list functions. 🎉

Effective Git for Community Projects.
RSVP #Cairo #Maghreb
https://www.meetup.com/softwarehubcairo/events/293934220/
RSVP #Ankara #Turkiye
https://www.meetup.com/softwarehub/events/293934269/
RSVP #Riyadh #Mashreq
https://www.meetup.com/softwarehubriyadh/events/293934241/
All members of the Ummah are welcome to attend
#Git
#VersionControl
#Ankara
#Egypt
#Cairo
#Algiers
#Tunisia
#Morocco
#Nigeria
#Ethiopia
#Africa
#Sudan
#Riyadh
#Dammam
#Damascus
#Baghdad
#Mosul
#Basra
#Manama
#Doha
#Dubai
#Sana
#Aden
#Muscat
#Iran
#Kabul
#Dhaka
#Jakarta
#KualaLumpur
#Bosnia
#SoftwareHub
#SoftwareFreedom

Git is as much a tool for creating art as it is for preserving history. Do you not care about nice straight lines and short, succint, consistent commit messages?
I blame GUI tools. Nobody knows how to use the CLI anymore. :(
Git - Large File Storage
Git is ruling the development world like no other. At some point, you may find photos, diagrams or other documents in your code, to keep track of them. But, is it really ok to store large files or even binaries in your code?
I'm starting #git bisect over for the fourth time because *again* I forgot that I'm required to run:
pypy3 /usr/bin/nox ...
because this *beep* of *beep* doesn't accept PyPy3 as a target (like #tox trivially does) and I've accidentally started testing with CPython at some random point instead.
#nox is no obnoxious.
Cambiar la fecha de un commit usando GIT_COMMITER_DATE

did some ridiculous stuff with git trees and made #git-annex around 60x faster at importing from special remotes
turns out that git can be handy as a general-purpose merkel tree differ even when you're operating on data that git doesn't know anything about.. Just sha1 some internal data, shove the shas into a tree, and git diff away.
In my case, I'm hashing basiclaly inodes..
https://git-annex.branchable.com/devblog/day_649-650__speeding_up_repeated_imports/
#Git v2.41 が出てる。
Git for Windows は次のバージョンのどこかから Windows7 と 8 のサポートが外されるそうな(MSYS2 次第)。
>Release Git for Windows v2.41.0.windows.1 · git-for-windows/git
https://github.com/git-for-windows/git/releases/tag/v2.41.0.windows.1
Git Upstreams and Forks: A Complete How-To | Atlassian Git Tutorial https://www.atlassian.com/git/tutorials/git-forks-and-upstreams
Will #Git be around forever? Or is it about to be beaten by a competing product? More questions like that (and also some answers) in my talk on #VersionControl later today! Join me in Room 2 at 18:10 to hear more. #DevoxxPL#DevoxxPoland
Git Bisect is such a godsend. Why am I only learning about this feature now? #git
https://git-scm.com/docs/git-bisect
@benaryorg @natty point taken - both options are valid and can be used since they don't conflict each other.
Ideally said dotfiles would be synced and versioned with something like a #git (and/or maybe #rsync) and be identical on all machines of the same type.
Codeberg, https://codeberg.org/.
Codeberg is a collaboration platform and Git hosting for free and open source software, content and projects.
How good is #Git for writing?
My primary use of squashing commits with #git: hiding those embarrassing "oops" commit messages.
The first time you screw up Git you learn about `git reflog`. And then that’s the second time you screw up Git.
I am really beginning to loathe #git submodules.
Want a easy-to-install git server to experiment with things?
Say no more. Meet Soft Serve: A tasty, self-hostable Git server for the command line » https://github.com/charmbracelet/soft-serve
I just published a new article about .gitignore files and GitHub's repo of ignore files that you can use in your projects. Enjoy #python #git
https://mkennedy.codes/posts/github-gitignore-repo-is-open-to-all/
Kritische Sicherheitslücke: GitLab-Entwickler raten zu zügigem Update
Es gibt eine wichtiges Sicherheitsupdate für die Versionsverwaltung GitLab. Entwickler sollten jetzt reagieren.
@theresnotime it is in `.git/HEAD` (ex: `ref: refs/heads/master`) which can not be beheaded:
```
$ git symbolic-ref --delete HEAD
fatal: deleting 'HEAD' is not allowed
```
But you can change your HEAD:
```
git symbolic-ref HEAD refs/heads/REL1_39
```
(same as `git checkout REL1_39)
Git migration completed!
We are proud to announce that the migration to Git packaging succeeded! 🥳
Thanks to everyone who has helped during the migration!
Git Version Control and RStudio
@NHSrCommunity webinar on Thursday, May 25
3:30 pm – 4:30 pm BST / 10:30 am EDT
With Ryan Johnson – Data Science Advisor, @Posit
You create a feature branch and make several commits to it, but in the meantime your teammates continue to commit to main. 👩💻
How do you get their changes into your branch? 🤔
See how the #Git Rebase feature can help 👇
https://www.jetbrains.com/dotnet/guide/tips/rebase-feature-branch/ #dotnet
Thanks to everyone who came to my talk about #git hooks at #phptek
The slides are here:
https://buff.ly/451Pazc
Feel free to give me feedback through the conference's JoindIn link:
https://joind.in/event/phptek-2023/stop-committing-your-secrets---git-hooks-to-the-rescue
@phptek
#tek2023
@prahou @icedquinn @masinter
to interlisp is and is being carefully designed, due to git's ubiquity and integration with web. Some #interlisp #git links:
https://github.com/orgs/Interlisp/discussions/637 <- deep, recent years discussion
https://youtu.be/HYWFTiai_tA
My (failure to) TDD thread:
https://mastodon.sdf.org/@screwtape/110370719533334526
🆕 Blog post:
The UPCOMING.md file in our package repositories - what it is used for and how it is formatted
https://www.mikestreety.co.uk/blog/the-upcomingmd-file-in-our-packages-and-extensions/
I believe that #codereview should be interactive. You can't just toss a big change set over the fence to a coworker and expect them to give you useful feedback based only on that. They should be able to ask questions, and the author should be responsible for answering them completely. #webdev #software #agile #git #programming
I'm super disappointed in #HACS for using #git repositories as the base object, and then just NOT cloning them properly, but I think #homeassistant core might be worse. Lets examine the #blueprint update process. These #blueprints are installed inside the UI by pasting a URL into a box and clicking "go". Using them is a simple web form. Both are VERY easy.
The update page STARTS with "Blueprints might change only once or twice." HA is the update-breakingest app I've ever used and I used to run Win95 as a satellite internet gateway.
AHEM. Anyway. Lets update a broken blueprint. From the docs:
First you need to find the raw blueprint files. Good luck.
But wait! By default there is NO ACCESS to those files! So step zero is to figure that out.
Oh, and step 1/2 is to get an editor, which may involve redoing step zero.
OK. Editor and files. Now you just need to ... know how to edit code without breaking it. A lot harder than "paste this url and answer questions".
https://www.home-assistant.io/docs/automation/using_blueprints/#keeping-blueprints-up-to-date
Hey you! If you ever, ever, use #github, #gitlab (etc) you need to read this. Every #maker, and most everyone else, ESPECIALLY those of you who are NOT #developers. (Contributors/devs usually have local copies already.)
The first hour of my day was just wasted chasing down an error in #HACS that turns out to be "Dev deleted their repositories on github and now #homeassistant is mad"
The problem is not that the developer chose to stop supporting their work. That is their prerogative and my only role is to be sad. The problem is that we learned nothing from https://arstechnica.com/information-technology/2016/03/rage-quit-coder-unpublished-17-lines-of-javascript-and-broke-the-internet/
#GIT ONLY WORKS IF YOU HAVE YOUR OWN COPY. The downloads and tarballs are not the same thing. They are partial copies at best. Even "forking" (on the same site) can be deleted at the original author's whim.
To actually have your own copy, it needs to be somewhere else. On a new site (if the original is on #github you can put your copy on #gitlab) or even your laptop. And when you can, use your copy instead.👿
Starting a new job is a good reminder of all the little #iOSDev techniques I've collected over the years.
Today I remembered how great #git worktree is: https://git-scm.com/docs/git-worktree
Often I’m working on a branch with a bunch of changes, and want to test just a few of those changes against the main branch without losing my place.
I add a worktree with `git worktree add ~/repo_copy2 main`
`cd ~/repo_copy2`
`git cherry-pick <commit-with-small-changes>`
Open Xcode, build, confirm the change is good!
I've been using git for 13+ years and I still have no idea what "theirs" and "ours" mean when solving a conflict.
Ask me anything.
The source code for NeXTSTEP has been leaked and is on Github.
https://www.nextcomputers.org/forums/index.php?topic=4690.0
#NeXT #vintagecomputing #retrocomputing #NEXTSTEP #OS #Mach #Apple #SteveJobs #UnIX #macOS #sourcecode #GIT
OpenCommit is such a great helper! No more pondering how to craft a proper commit message. I just stage my changed files ald let my personal AI assistant do the rest.
https://github.com/di-sukharev/opencommit
BTW, don't just do a #git repack, as it doesn't do a deep repack. git gc --aggressive is what you want.
I just tried it out:
$ (dd if=/dev/random count=1024 bs=1; dd if=/dev/zero bs=1m count=5) > somefile.bin
$ git add somefile.bin
$ git commit somefile.bin
$ dd if=/dev/random count=4096 bs=1 | dd of=somefile.bin oseek=3 bs=1m conv=notrunc
$ git commit somefile.bin
$ du -shc .git/objects/*
[...]
72K total
$ git repack
$ du -shc .git/objects/*
[...]
92K total
yes, an increase!!!
1/2
This also applies to your work repos as well. I probably have a number of #git repos that would benefit from a repack.
Here's another good explainer:
https://gist.github.com/matthewmccullough/2695758
Github down? I hadn’t noticed.
Might be a good time to check out Codeberg.
Bonus: You can follow them on the fediverse at @Codeberg
Moved one of my current projects from Github to Codeberg. I suspect that I will be doing all of my future work using it instead.
https://codeberg.org/lolbat/Victor
And I did it all on the CLI which was fun and scary at the same time.