Tag git
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 👍🏽
Post details
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.
Post details
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
Post details
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
Post details
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
Post details
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
Post details
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.
Post details
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
Post details
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
Post details
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.
Post details
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
Post details
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
Post details
protip: Git is advertised as a "collaboration" tool, but advanced devs know its actually a blame tool. To use git properly, learn these phrases: "It'll be done if Amy ever approves it" "I didn't expose that API key, Steve did" "Well, it's been broken since Tom merged his change"Kat Maddox (@ctrlshifti)Thu, 09 Jul 2020 02:05 +0000
Post details
Check in a `.gitattributes`. Ignore `core.autocrlf`. edwardthomson.com/blog/git_for_w…
Edward Thomson (@ethomson)Sun, 28 Jun 2020 11:11 +0000