Git Rev News: Edition 78 (August 31st, 2021)
Welcome to the 78th edition of Git Rev News, a digest of all things Git. For our goals, the archives, the way we work, and how to contribute or to subscribe, see the Git Rev News page on git.github.io.
This edition covers what happened during the month of July 2021.
German Lashevich sent a bug report about an issue when using the
He gave an example where he sets the
user.emailconfig variables to some values in a temporary
/tmp/git-test/.gitconfigconfig file, and then sets
GIT_CONFIGto point to this file.
When he then tried to commit some changes, Git errored out with an “Author identity unknown” error and instructions about how to set the current account’s default identity. He expected that the values of the
user.emailvariables set in the temporary config file would have been taken into account.
Peff, alias Jeff King, replied that
GIT_CONFIGis a historical wart that isn’t used by all of Git, but only the
git configcommand, and even there
git config --fileshould be used instead.
He suggested using
GIT_CONFIG_SYSTEMwhich are available since v2.32.0. They instruct Git to read a specific file instead of the usual global (usually
/etc/gitconfig) or system-level (
$XDG_CONFIG_HOME/git/config) config files respectively.
German thanked Peff saying
GIT_CONFIG_GLOBALwas what he needed.
Junio Hamano, the Git maintainer, replied to Peff that reading the
GIT_CONFIGdocumentation gave a misleading impression as it didn’t say that
GIT_CONFIGwas only for the
Peff agreed with Junio saying that the documentation hadn’t been updated since 2007, when
GIT_CONFIGreally did impact other commands, and that he was sending a small patch series to improve the situation.
Taylor Blau and Martin Ågren reviewed the patches and discussed them a bit with Peff and Junio.
The patch series was later merged into the master branch, and the documentation improvements are now available in the recently released Git 2.33.
- Git 2.33.0, 2.33.0-rc2, 2.33.0-rc1, 2.33.0-rc0
- Git for Windows 2.33.0(2), 2.33.0(1), 2.33.0-rc2(1), 2.33.0-rc1(1), 2.33.0-rc0(1)
- GitHub Enterprise 3.1.6, 3.0.14, 2.22.20, 3.1.5, 3.0.13, 2.22.19
- GitLab 14.0.8, 14.2.1, 14.2, 14.1.3, 13.12.10, 14.1.2, 14.1.1
- Gerrit Code Review 3.3.6, 3.2.12, 3.1.16, 3.4.1
- GitKraken 7.7.2, 7.7.1
- GitHub Desktop 2.9.2, 2.9.1
- Highlights from Git 2.33 by Taylor Blau on GitHub Blog.
- Treeverse raises $23M to bring Git-like version control to data lakes: lakeFS.
- GitHub has shut down its Git password authentication on August 13, 2021; you should preferably use token-based authentication instead; support for SSH keys continues.
- Optimizing Git’s Merge Machinery, Part V by Elijah Newren on Palantir Blog.
- How to write release notes by Drew DeVault.
- From a Single Repo, to Multi-Repos, to Monorepo, to Multi-Monorepo by Leonardo Losoviz on CSS-Tricks.
- Visualizing a codebase: how can we automatically “fingerprint” a codebase to see its structure at a glance, by Amelia Wattenberger on GitHub Next.
- The History Behind Git by Ahmed Gouda (also on DEV.to).
- Getting geeky with Git, an 11 part series by Marcin Wanago.
- New in Git: switch and restore
by Dragos Barosan (new to the author;
git restoreappeared in Git 2.23 in 2019).
- A Guide to Git Stash by Pragati Verma on DEV.to.
- How to Fix, Edit, or Undo Git Commits (Changing Git History) by Anthony Heddings on CloudSavvy IT.
- 5 Ways to Undo Mistakes with Git by Tobias Günther on SitePoint.
- 5 Git Tricks Every Developer Should Know by Shadid Haque on DEV.to.
- Git for Managing Small Projects by Rob “drtorq” Reilly on The New Stack, the first part in a planned series of tutorials on Git.
- Git: Fetch and Merge, don’t Pull, an old blog post by Mark Longair about his tips related to fetching and merging versus pulling, that was discussed a long time ago on the mailing list.
- Best practices for writing code comments by Ellen Spertus about writing better code comments.
Git tools and sites
- lakeFS is an open source tool that transforms your object storage into a Git-like repository. It enables you to manage your data lake (storing unprocessed data) the way you manage your code. Supports AWS S3, Azure Blob Storage and Google Cloud Storage; works seamlessly with all modern data frameworks such as Spark, Hive, AWS Athena, Presto, etc.
CITATION.cfffiles, which use Citation File Format (CFF), are plain text files with human- and machine-readable citation information for software (and datasets). Code developers can include them in their repositories to let others know how to correctly cite their software. Supported by GitHub, Zenodo and Zotero.
- GitUI is a blazing fast terminal based GUI for Git written in Rust, meant to work reliably even on large repositories. Similar to tig.
This edition of Git Rev News was curated by Christian Couder <email@example.com>, Jakub Narębski <firstname.lastname@example.org>, Markus Jansen <email@example.com> and Kaartic Sivaraam <firstname.lastname@example.org> with help from Elijah Newren and Philip Oakley.