๐Ÿ“• Node [[git]]
๐Ÿ“„ git.md by @flancian ๏ธ๐Ÿ”— โœ๏ธ

git

๐Ÿ“„ git.md by @neil ๏ธ๐Ÿ”— โœ๏ธ

Git

๐Ÿ“„ git.md by @bmann

Local Git Exclude

Edit the local exclude file in your git repo without having to edit the global .gitignore

.git/info/exclude

Source: StackOverflow

Counting files in a git repo

git ls-files | wc -l

Source: Stackoverflow

๐Ÿ“„ git.org by @jakeisnt
  • Tricks
  • Writing a Git Commit Message
    • Rules
  • Repositories
  • Organization Thoughts
  • Rewriting
  • Tricks
    • Patch previous commits with rebases
  • How Git Works
  • Worktrees
  • Github
    • READMEs
  • Alternatives
๐Ÿ“„ git.md by @karlicoss

Table of Contents

[2020-04-19] The Communicative Value of Using Git Well โ€“ Math โˆฉ Programming [[git]]

[2017-05-06] use hg-fast-export to convert [[mercurial]] [[git]]

[2016-09-07] git stores snapshots, not diffs [[git]]

Different from SVN
It is important to note that this is very different from most SCM systems that you may be familiar with. Subversion, CVS, Perforce, Mercurial and the like all use Delta Storage systems - they store the differences between one commit and the next.
Git does not do this - it stores a snapshot of what all the files in your project look like in this tree structure each time you commit. This is a very important concept to understand when using Git.
Gitโ€™s pack files are carefully constructed to effectively use disk caches and provide โ€œniceโ€ access patterns for common commands and for reading recently referenced objects.

NOCOMMIT global hook? [[git]]

[2019-08-18] Highlights from Git 2.23 - The GitHub Blog [[git]]

https://github.blog/2019-08-16-highlights-from-git-2-23/

You may have used git grep to search for some text in your Git project, just as you may have used git diff to view active changes. What do the two have in common? They both display some contents in your repository, and both have support to show the surrounding function context with -p (short for --show-function) or -W (short for --function-context), respectively.

Git blame ignore formatting [[git]]

Configure your git blame to ignore cleanup changes.

https://www.moxio.com/blog/43/ignoring-bulk-change-commits-wโ€ฆ

[2019-08-24] Fossil Versus Git | Lobsters [[git]]

https://lobste.rs/s/e3blgf/fossil_versus_git

This article is getting a few things about git wrong. They claim git only supports โ€˜One check-out per repositoryโ€™. Heard of git worktree?

My unorthodox, branchless git workflow | Lobsters [[git]]

Git revise is especially useful for this commit stack workflow, as I call it. Iโ€™m a huge fan.

Itโ€™s a better rebase. So much better that it should be obligatory. You can split commits, batch rename them, and you donโ€™t have to stash your work first.

a page with my favourite git commands & tricks? [[git]] [[toblog]] [[exobrain]]

wsdiff
image diff
nbstirpout
iadd
extra worktree dir

The Communicative Value of Using Git Well โ€“ Math โˆฉ Programming [[git]]

Iโ€™ve written up my ideas, under the name โ€˜Literate Gitโ€™, at https://github.com/bennorth/literate-git if youโ€™re interested.
The tool I wrote turns a structured git history into an interactive web page.
Thereโ€™s an example there of how the ideas might work in a tutorial setting.
After I gave a talk on this work, one of the people in the audience tried it with the Haskell LLVM tutorial: https://lukelau.me/kaleidoscope/

[2019-08-02] git - How do I remove a submodule? - Stack Overflow [[git]]

https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule/21211232#21211232

git rm the_submodule
rm -rf .git/modules/the_submodule

[2019-12-11] git reflog expire โ€“expire=now โ€“all && git gc โ€“prune=now โ€“aggressive [[github]]

[2019-05-10] git rebase โ€“committer-date-is-author-date โ€“autostash HEAD~1 [[git]]

[2020-06-08] Learn to change history with git rebase!

[2018-11-28] extraction - How to extract one file with commit history from a git repo with index-filter & co - Stack Overflow [[git]]

https://stackoverflow.com/questions/7375528/how-to-extract-one-file-with-commit-history-from-a-git-repo-with-index-filter/37037151

git filter-branch --index-filter 'git read-tree --empty; git reset $GIT_COMMIT -- $your $files $here' -- --all --

[2019-04-10] set up git project commmand

[2020-07-12] - GitHub + why do we centralize issues, documents for a distributed versionโ€ฆ | Hacker News

for an academic treatment of the defects in Git read: What's Wrong with Git? A Conceptual Design Analysis S. Perez De Rosso and D. Jackson. In Proceedings of the 2013 ACM International Symposium on New Ideas, New Paradigms, and Reflections on Programming & Software (Onward! 2013) 

[2018-01-01] detect file type changes [[git]]

for r in *; do pushd $r; git whatchanged | grep "\.\.\..T"; popd; done

git ssh debugging [[git]] [[ssh]]

GIT_SSH_COMMAND='ssh -v' git fetch

[2021-01-11] How to keep your Git history clean with interactive rebase | GitLab

[2020-11-16] Why Git blame sucks for understanding WTF code (and what you should use instead) | Lobsters

For archeology I really love git gui blame despite its dated UI

[2019-07-21] git - How do I remove a submodule? - Stack Overflow https://stackoverflow.com/questions/1260748/how-do-i-remove-a-submodule/7646931#7646931 [[git]]

he majority of answers to this question are outdated, incomplete, or unnecessarily complex.

A submodule cloned using git 1.7.8 or newer will leave at most four traces of itself in your local repo. The process for removing those four traces is given by the three commands below:
๐Ÿ“„ git.myco by @melanocarpa ๏ธ๐Ÿ”— โœ๏ธ

Git is a distributed version control system. It stores whole objects, not diffs, which is one of the key differences between Git and other version control systems of its time. This speeds up operations like checking out branches and processing commits in batch. Distributed means that while you can have a single source of truth, nothing will break when it goes down, because the whole object database is stored on users' machines, and data integrity is easily verified (commits can also be signed using OpenPGP).

Pรฉter Gervai:

That is probably an inherent lazyness of me, for example I passionately hate git and pretty much like mercurial, because the first was created by a dozen hackers to themselves, and nobody really understands it, and nobody else can really use it to its full potentials, and all the documentation and help pages are obscure, complex and generally written from the perspective of someone already knowing the system and being pretty annoyed that have to explain it to anyone else; mercurial on th eother hand has an excellend handbook, good structured help system, easy to use commands which can be very complex if someone take the time and efforts to learn it. And both systems are basically the same, do the same, using the same principles. The difference is the attitude towards the people not yet being fluent in the system.

Also see: https://git-man-page-generator.lokaltog.net/

A platform like Github makes this different, in that it abstracts these tools into a web UI and expect all collaborators to have an account at the platform. The more I learn about ways of collaborating outside of a centralised service like that, the more I've come to dislike them. Decentralised collaboration is a lot more enjoyable and empowering.

Cleaning up the history might seem tedious at first for marginal cosmetic benefits, but it gets much easier and faster with practice. Here I am collecting some tips for cleaning up a git commit history before publishing it to others, for example in the form of a pull request.

Submodules are easier to push but harder to pull โ€“ This is because they are pointers to the original repository
Subtrees are easier to pull but harder to push โ€“ This is because they are copies of the original repository

git-annex allows managing files with git, without checking the file contents into git. While that may seem paradoxical, it is useful when dealing with files larger than git can currently easily handle, whether due to limitations in memory, time, or disk space.

git-annex is designed for git users who love the command line. For everyone else, the git-annex assistant turns git-annex into an easy to use folder synchroniser.

ะกะพะฑัั‚ะฒะตะฝะฝะพ, ะฟะพ-ั…ะพั€ะพัˆะตะผัƒ, ั‚ัƒั‚ ะฝะฐะดะพ ะฝะฐั‡ะธะฝะฐั‚ัŒ ั ั‚ะพะณะพ, ั‡ั‚ะพ ะตัั‚ัŒ ั†ะตะปะฐั ั‚ะตะผะฐ โ€” ยซัะธัั‚ะตะผั‹ ัƒะฟั€ะฐะฒะปะตะฝะธั ะฒะตั€ัะธัะผะธยป, ะฟั€ะตะดะฝะฐะทะฝะฐั‡ะตะฝะฝั‹ะต ะฒะพะพะฑั‰ะต-ั‚ะพ ะดะปั ะฟั€ะพะณั€ะฐะผะผะธัั‚ะพะฒ, ะฝะพ ั ัƒะฒะตั€ะตะฝะฐ, ั‡ั‚ะพ ะฟะธัˆัƒั‰ะธะผ โ€” ะฝะต ะผะตะฝะตะต ะฝัƒะถะฝั‹ะต. ะ˜ะท ะฝะธั… ั ัƒะถะต ะบะพั‚ะพั€ั‹ะน ะณะพะด ะธัะฟะพะปัŒะทัƒัŽ git.

Gitea federation development has reached a crucial milestone: federating with Mastodon!

This is a big deal.

๐Ÿ“„ git.md by @agora@botsin.space
๐Ÿ“„ Git.md by @agora@botsin.space
๐Ÿ“„ git.md by @an_agora@twitter.com
๐Ÿ“„ git.md by @anagora@matrix.org
๐Ÿ“„ Git.md by @anagora@matrix.org
  1. Change the storage medium to something based on [[SQLite]]

  2. Support more formats, including [[Mycomarkup]]

  3. Fetch through more media, not just [[Git]], but also parsing [[microformats]] and whatnot

  1. Change the storage medium to something based on [[SQLite]]

  2. Support more formats, including [[Mycomarkup]]

  3. Fetch subnodes through more media, not just [[Git]], but also parsing [[microformats]] and whatnot

๐Ÿ“„ git.md by @flancian@social.coop
๐Ÿ“„ git.md by @flancian@twitter.com

There are several sites that do Twitter (followers, following) -> Mastodon account discovery (which is great news in general), but [[debirdify]] seems particularly solid among them (and is open source).

#go https://t.co/4p5bmu4GEK #git https://t.co/Jx9CbPYa9C

I like the (1/2)

Loading pushes...

Rendering context...

๐Ÿ“• Node [[git alias]] pulled by user
๐Ÿ“• Node [[git config]] pulled by user
๐Ÿ“• Node [[git ship]] pulled by user