• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4251 shaares
1 / 2
Filters
33 results tagged git

GitHub - extrawurst/gitui: Blazing 💥 fast terminal-ui for git written in rust 🦀

QRCode

Blazing 💥 fast terminal-ui for git written in rust 🦀 - extrawurst/gitui

https://github.com/extrawurst/gitui
March 12, 2024 at 2:22:58 PM EDT *
git programming
FILLER

Why Git is hard | Roadrunner Twice

QRCode

https://lobste.rs/s/aejnbw

Commit content is both a snapshot and a patch

Commits are unique and immutable, and are anchored to a specific point in the graph of history and causality. This means that a commit’s identity is made up of both its content and its context. (If a commit has the same content but a different parent, it’s NOT the same commit.)

Branches aren't quite branches, they're more like little bookmark go-karts

And branches don't mutually exclude each other, they don't "own" the branch of history that they happen to be placed on.

git pull exists

"Pull" presents the illusion that you can just ask Git to make everything okay for you so that you're allowed to push again, without having to understand what you're causing to happen, which, as I mentioned at the top, is literally the opposite of how Git operates. It's an incredibly harmful illusion! Can everyone please start teaching novices the basic "fetch, observe, then consciously choose whether to fast-forward / do a merge commit / rebase / reset" workflow instead, thanks.

https://roadrunnertwice.dreamwidth.org/596185.html
November 9, 2023 at 1:51:52 PM EST *
git
FILLER

mbutterick/pollen: book-publishing system - pollen - Gitea: Git with a cup of tea

QRCode

pollen - book-publishing system

https://git.matthewbutterick.com/mbutterick/pollen/
April 26, 2023 at 11:42:53 AM EDT *
git ebook publishing
FILLER

Never use git submodules

QRCode

git submodules are always the wrong solution. Yes, even the to the problem they were specifically invented to solve.

  • Use git subtree
  • Just have a monorepo
  • Use a package management system, and explicit dependencies
  • Use the multiple repository tool mr
  • Have your build expect to find the dependency in .., its parent dir
  • Provide an ad-hoc in-tree script to download the dependency
https://diziet.dreamwidth.org/14666.html
March 13, 2023 at 3:13:15 PM EDT *
git
FILLER

https://about.gitlab.com/blog/2022/10/06/take-advantage-of-git-rebase/

QRCode
https://about.gitlab.com/blog/2022/10/06/take-advantage-of-git-rebase/
October 13, 2022 at 9:24:45 AM EDT *
git
FILLER

The Scout Pattern // Think Like (a) Git

QRCode

Create a new branch (I often name it test_merge) and switch to it.

https://think-like-a-git.net/sections/testing-out-merges/the-scout-pattern.html
June 17, 2022 at 3:07:46 PM EDT *
git
FILLER

Commits are snapshots, not diffs | The GitHub Blog

QRCode

Git has a reputation for being confusing. Users stumble over terminology and phrasing that misguides their expectations. This is most apparent in commands that “rewrite history” such as git cherry-pick or git rebase. In my experience, the root cause of this confusion is an interpretation of commits as diffs that can be shuffled around. However, commits are snapshots, not diffs! I believe that Git […]

https://github.blog/2020-12-17-commits-are-snapshots-not-diffs/
February 18, 2022 at 3:07:51 PM EST *
git
FILLER

A Visual Git Reference

QRCode
http://marklodato.github.io/visual-git-guide/index-en.html
February 1, 2021 at 3:26:58 PM EST *
git
FILLER

Git From the Bottom Up

QRCode

In my pursuit to understand Git, it’s been helpful for me to understand it from the bottom
up — rather than look at it only in terms of its high-level commands. And since Git is so beautifully simple when viewed this way, I thought others might be interested to read what I’ve found,
and perhaps avoid the pain I went through finding it.

http://ftp.newartisans.com/pub/git.from.bottom.up.pdf
February 1, 2021 at 3:26:30 PM EST *
git
FILLER

Easy Git Workflow

QRCode

So you've finished your work and are ready to merge your branch back into master. Here's one way to do that very cleanly and safely:

git checkout master
git fetch --prune
git merge --ff-only origin/master
git rebase master my-awesome-feature-1234
git push --force-with-lease origin my-awesome-feature-1234
git checkout master
git merge --no-ff my-awesome-feature-1234
git push origin master

You'll remember that, right? And you'll never mess it up?

For us, we simply run:

git merge-with-master
https://ovid.github.io/articles/easy-git-workflow.html
August 4, 2020 at 2:35:57 PM EDT *
git
FILLER

Common Git mistakes and how to fix them – Ankur Biswas – Medium

QRCode

$ git commit --amend

  • Accidentally committed all changes to the master branch
  • Forgot to add a file to that last commit
  • Added a wrong file in the repo
https://medium.com/@i_AnkurBiswas/common-git-mistakes-and-how-to-fix-them-10184cd5fa77
December 7, 2018 at 11:31:53 AM EST *
git
FILLER

Little Things I Like to Do with Git – CSS Wizardry – CSS Architecture, Web Performance Optimisation, and more, by Harry Roberts

QRCode

Check Which Changes You’re About to Pull

If you haven’t worked on a project for a little while, you might want to check what’s happened upstream before you pull all of those changes down into your local branch.

$ git log --oneline --no-merges HEAD../

https://csswizardry.com/2017/05/little-things-i-like-to-do-with-git/
September 25, 2018 at 2:03:50 PM EDT *
git
FILLER

John Anderson - "Introduction to Git for non-developers"

QRCode

The Perl Conference 2018

  • Revision Control System: track changes

  • ~4:30: "This stuff should be taught in schools. If you are not teaching students version control you are doing them a vast disservice. I am super tired of having to spend the first month of onboarding every new junior developer on how to use git."

  • ~5:20 Git is not only for code! He talks about text changes, but I think it is also good for tracking binary file changes (but you can't tell the differences).

  • https://hellowebbooks.com/learn-command-line/

  • ~9:30 git config

  • ~15:20 - staging area allows you to build up commits - confusing for newbies

  • https://git-scm.com/book/en/v2

  • Talk lasts 30 minutes, and then questions: (git rebase)

  • https://www.deckset.com/buy/

https://www.youtube.com/watch?v=PuSFqiDm0YU&index=4&list=PLA9_Hq3zhoFx1inHPmwmbXrPcI8cc0fyO&t=0s
June 19, 2018 at 3:12:33 PM EDT *
git video tutorial youtube
FILLER

Why you should stop using Git rebase – Fredrik V. Mørken – Medium

QRCode

I soon discovered that rebasing presents some challenges that are not obvious when you first start doing it. Before presenting them, I’ll quickly recap the differences between merging and rebasing.

https://medium.com/@fredrikmorken/why-you-should-stop-using-git-rebase-5552bee4fed1
April 25, 2018 at 10:48:55 AM EDT *
git
FILLER

Git - When to Merge vs. When to Rebase

QRCode

To avoid messy merge commits and help keep a relatively clean git commit history use the following workflow when fetching upstream changes:

git fetch origin

git rebase −p origin/develop

https://www.derekgourlay.com/blog/git-when-to-merge-vs-when-to-rebase/
September 19, 2017 at 11:46:20 AM EDT *
git
FILLER

How to undo (almost) anything with Git · GitHub

QRCode
https://github.com/blog/2019-how-to-undo-almost-anything-with-git
June 15, 2015 at 5:54:14 PM EDT *
git
FILLER

Alex Gaudio - Sharing Part of Your Repo on GitHub

QRCode
http://alexgaudio.com/2011/07/24/sharing-part-your-repo-github.html
April 10, 2015 at 11:07:47 AM EDT *
git
FILLER

git: fetch and merge, don’t pull « Mark’s Blog

QRCode
http://longair.net/blog/2009/04/16/git-fetch-and-merge/
April 1, 2015 at 10:26:32 AM EDT *
git
FILLER

Git - Working with Remotes

QRCode
http://git-scm.com/book/en/v2/Git-Basics-Working-with-Remotes
March 26, 2015 at 10:27:30 AM EDT *
git
FILLER

Always do pull requests in branches

QRCode
http://neilb.org/2015/01/10/pr-in-branch.html
January 12, 2015 at 8:53:29 AM EST *
perl git
FILLER
1 / 2
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community