Post details
Jessie Frazelle (@jessfraz)Sat, 18 Dec 2021 01:57 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
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
(5 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.
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
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
Working with a Git remote's default branch, using origin/HEAD
(2 mins read).
How to interact with the default branch for a remote repo, as well as update it if needed.
Open source friends: what are the best pieces of "Git/GitHub etiquette" you've picked up over the years? Things like submitting large changes commit-by-commit to help reviewers out.
Celeste Horgan (@celeste_horgan)Thu, 25 Mar 2021 21:06 GMT
Have you looked at git reflog
? It shows a log of all operations on your local repo and allows you to do exactly that - find commit hashes to go back to, which you could then git reset --hard
Determining the (Git) Branch of the Jenkins Pipeline Job (1 mins read).
How to find out what branch the currently executing script has been checked out from.
A good read - I've found that too many PRs then ends up difficult as you're constantly rebasing them to remove the constant merge commits, so am happy with a larger PR with lots of atomic commits that allow reviewing them in isolation
Help! My (27M) commits (abef8c, 94a6cb, 39d30c, 51afee, 34c392) have unionized with a squash and rebase.
i can fix my mistakes don't give me solutions (@mgattozzi)Sat, 02 Jan 2021 23:32 GMT
If you ever see a blog post that claims Git makes perfect sense once you learn <FACT>, the author is lying.
Russ Cox (@_rsc)Tue, 22 Dec 2020 22:29 GMT
A number of Git hosting tools (GitLab and GitHub at least) use origin/HEAD
to denote primary branch on the upstream so you could probably do something with that
I think the general rule of thumb is "try not to support anything other than the latest version in Production and the latest development version, and even then reduce the time that there are two versions as much as possible" but with things like user-managed software, or where your path to production is slower, it can be difficult to say that.
Using Git Diff Without a Repo (1 mins read).
How to use git diff
when you're not in a Git repo.
I don't know who needs to hear this but... Delete that branch after merging.Jenn Creighton (@gurlcode)Wed, 07 Oct 2020 17:42 +0000
unknown revision or path not in the working tree
after Jenkins Git Plugin Update (1 mins read).
How to fix git rev-parse
suddenly not working after a Jenkins Git plugin update.
Debugging Git Errors Using Environment Variables (1 mins read).
How to use environment variables such as GIT_TRACE
to debug what's going wrong / what's happening under the hood with git
.
I don't think so but https://github.com/forgefed/forgefed is a standard that's being worked on to make it possible to federated across providers for this reason
Okay I'm sorry but this question mark is super passive-aggressive and I don't like it
Emma Bostian 🐞 (@EmmaBostian)Wed, 12 Aug 2020 13:56 +0000