From 5f59dbdc348efe9fce90a89d95ed7e7268313bf0 Mon Sep 17 00:00:00 2001 From: tiyn Date: Sat, 21 Feb 2026 18:08:57 +0100 Subject: [PATCH] linux/git: added credential storing and caching --- wiki/git_(general).md | 20 +++++++++++++++++--- wiki/linux/git_(package).md | 19 ++++++++++++++++++- 2 files changed, 35 insertions(+), 4 deletions(-) diff --git a/wiki/git_(general).md b/wiki/git_(general).md index 36ed303..285d9d7 100644 --- a/wiki/git_(general).md +++ b/wiki/git_(general).md @@ -25,9 +25,23 @@ A distinction can be made between Web interfaces for git are quite useful for easily showing code to other people. Additionally it is easy to collaborate together. -- [Gitea](gitea.md) is an open-source and selfhosted and can be dockerized. -- [GitHub](https://github.com) is the go to system for many people. Not - selfhosted, owned by microsoft ([cli-tool](https://github.com/github/hub)). +- [Gitea](gitea.md) is an open-source and selfhosted git instance which can be dockerized. +- [GitHub](https://github.com) is a popular git server. + It is not selfhosted and owned by microsoft ([cli-tool](https://github.com/github/hub)). +- [GitLab](https://gitlab.com) is a self-hostable git instance which also has a default version + available via their website. + +#### Git Apps + +Depending on the [specific server](#server-with-web-interface) used there are many different apps +that can be used. + +- For [GitHub](https://github.com) there is app with the same name for + [Android](/wiki/android.md) devices and iOS devices. +- For [Gitea](/wiki/gitea.md) and Forgejo there is an app called [GitNex](https://gitnex.com) which + is available for [Android](/wiki/android.md) devices. +- For [GitLab](https://gitlab.com) there is an app called [LabNex](https://labnex.app) which is + available for [Android](/wiki/android.md) devices. #### Server without graphical interface diff --git a/wiki/linux/git_(package).md b/wiki/linux/git_(package).md index 4d705b1..62f1ac0 100644 --- a/wiki/linux/git_(package).md +++ b/wiki/linux/git_(package).md @@ -93,7 +93,7 @@ A more or less complete overview of the options was performed in an Most [package managers](/wiki/linux/package_manager.md) package it in the package `git-delta`. Afterwards it needs to be enabled. -To do this globally add the following lines to the configuration file of git, which can be found in +To do this globally add the following lines to the configuration file of git, which can be found in `~/.gitconfig`. Depending on the system settings and preferences the dark-mode (`dark`) and the side-by-side view (`side-by-side`) can and should be disabled. @@ -141,3 +141,20 @@ git config --global color.diff.old "red bold" git config --global color.diff.new "green bold" git config --global color.diff.whitespace "red reverse" ``` + +### Save HTTPS Credentials + +The credentials used for HTTPS authorization can be saved with the following command. + +```sh +git config --global credential.helper store +``` + +They can also be cached with the following command. + +```sh +git config --global credential.helper cache +``` + +Both of these commands work globally. +For local storing or caching of credentials the commands have to be adapted.