Post details
:train2: London Tube Map via a Git Network Graph. Contribute to quarbby/london-git development by creating an account on GitHub.
:train2: London Tube Map via a Git Network Graph. Contribute to quarbby/london-git development by creating an account on GitHub.
Yesterday I used the "git filter-repo" command for the first time. Have not felt such a thrill of power/danger since I first learned about "git rebase -i".
Intended audience: software engineers working with Git who happen to come across this value and want to confirm that it has particular significance.
Performing bulk changes across Git(Hub) Repos with Turbolift and Microplane (4 mins read).
Using Turbolift and Microplane to enact changes across many Git(Hub) repositories.
Nice! If they're useful to keep I'll use git commit --fixup
into a parent commit (so I can then git rebase -i --autosquash) or into a commit called
DROPME` to remind me to get rid of that commit when I'm ready to go
If you have a local setup, just for you, and want it stored, here's how to do it, while leaving no footprints in the git repository.
Just add the following to your ~/.gitconfig [format] signOff = true git-scm.com/docs/git-confi…tommoulard (@tom_moulard)Thu, 04 Aug 2022 08:22 +0000
Matthias Ott is an independent user experience designer and developer from Stuttgart, Germany. Besides design practice he teaches Interface Prototyping at the Muthesius Academy of Fine Arts and Design, Kiel.
Weirdness with git diff-index
showing 1 file changed, 0 insertions(+), 0 deletions(-)
(1 mins read).
Something weird I hit last week with git diff-index
, which shows 1 file changed, but no changes.
git add -p is your best friend. Even if you state it all anyway. Oh and git commit -v 🥹
Felipe Sere (@felipesere)Sun, 08 May 2022 22:17 +0000
That's an exaggeration, if you've done `git status` and have seen what would be staged, then `git add .` can be okay, but even then we'd be better recommending `git add -pi`, which allows interactive staging of files; no more committing stuff you didn't mean to.
Emelia 👸🏻 • 💙💛 (@ThisIsMissEm)Mon, 09 May 2022 12:49 +0000
Here’s something interesting for you, @spences10 and @eddiejaoude; since you both posted interesting Git content this morning. There’s no such thing as a fork.David Flanagan (@rawkode)Sun, 08 May 2022 09:28 +0000
I have been a Vim user for 12 years and one important thing that you learn the first days using it is that you can be super efficient…
Determining if there are uncommitted changes in Git (1 mins read).
A one-liner to work out whether there are uncommitted changes in a repository.
Another new release of Git is here! Take a look at some of our highlights on what's new in Git 2.36.
Prefactoring: Preparatory Refactoring (2 mins read).
Why I use prefactoring as a means to perform up-front refactoring for codebases, splitting these into separate PRs/MRs where possible.
I think https://learngitbranching.js.org/ has a section on rebasing
Don't wait until you have an emergency to learn about git rebasing and cherrypicking. You won't need them often; but it's a superpower to be able to say; "I know how to fix this problem, here's what you do..."
assertchris (@assertchris)Tue, 12 Apr 2022 05:26 +0000
Exporting a Git repo as an archive (1 mins read).
How to export a Git repo as an archive format, such as a .tar.gz
or a .zip
.
Recommended read: Highlights from Git 2.35 | The GitHub Blog https://github.blog/2022-01-24-highlights-from-git-2-35/
Pull requests predate Github though.
Gustav Wengel (@GeeWengel)Sat, 25 Dec 2021 12:47 GMT
Jessie Frazelle (@jessfraz)Sat, 18 Dec 2021 01:57 GMT
Pro tip: if you don't need the history of a git repository make sure you specify `--depth 1` to significantly speed up the download 🪄 Super useful in CIsMinko Gechev (@mgechev)Tue, 14 Dec 2021 05:30 GMT
Recommended read: Merge Queues with Bors https://kflansburg.com/posts/merge-queues/
It's more that a Pull Request is a GitHub specific name for something in use in Git (https://www.git-scm.com/docs/git-request-pull) for kernel development and other projects for some time
How to Undo a git push --force
(3 mins read).
How to recover from a force push with Git.
If you run env GIT_SSH_COMMAND='ssh -vvv
that'll give you the verbose output you'll need from ssh
to do it 👍🏽
Oh no why is one commit fixing two different things
Matthew Garrett (@mjg59)Tue, 12 Oct 2021 20:57 +0000
If you've already fetched the Git history from the remote you shouldn't need WiFi to rebase any more 🤞🏽
Pushing Back to Git In a Jenkins Multibranch Pipeline (1 mins read).
How to push back to a Git repo using a Jenkins multibranch pipeline.
Recommended read: Commit Often, Perfect Later, Publish Once—Git Best Practices https://sethrobertson.github.io/GitBestPractices/
I had a go making a CLI for the first time to save myself always googling "how to do x with git". It's still suuuuuper buggy but ~mostly~ functional
katie walker (@KatCodes)Mon, 31 May 2021 19:48 +0000
Git != GitHub
Ayushi Rawat (@ayushi7rawat)Sat, 22 May 2021 22:19 +0000
https://www.jvt.me/posts/2021/03/31/git-origin-head/ may be of interest as a fairly well supported way of getting upstream default branch - I'm interested in this too though so I'll have a play with it tomorrow too
Without this setting you can still just type "p". Since I use vim keybindings I often just block select "pick" and replace it with "s". This is just about the default it fills in for you.Wes (@wesleytodd)Thu, 13 May 2021 17:47 +0000
MacOS devs: please add .DS_Store to your .gitignore_global pleaseshelby spees is staying home 😷 (@shelbyspees)Thu, 15 Apr 2021 15:53 +0000
Hmm I'll have to try it but I thought rebase-merge was the same as a --no-ff
merge
Recommended read: michaeljones/on-commit-messages https://github.com/michaeljones/on-commit-messages
ALWAYS WRITE MEANINGFUL COMMIT MESSAGES BECAUSE IF YOU DONT SQUASH I HAVE TO READ NONSENSE
Sailor Ghoul 👻✨ (@javavvitch)Fri, 02 Apr 2021 22:18 +0000
You're currently viewing page 1 of 3, of 113 posts.