Files
arkanum/docs/guide/components/git.md
OCram85 81aea0a4d2
All checks were successful
ci/woodpecker/push/docs Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
add Arkanum.dev site with docs (#97)
### 📖 Summary

- adds vitepess based docs for Arkanum.dev
- migrate arakanumm project from CodeServer org to arkanum org

### 📑 Test Plan

 CI pipeline tests (Default)

### 💬 Details

_No response_

### 📚 Additional Notes

_No response_

Reviewed-on: #97
2024-05-22 10:07:32 +02:00

2.8 KiB

Git

🔱 About Git Config files

The git configuration is usually done in these 3 different contexts:

  • system wide config
    • /etc/gitconfig
  • global (per user) config
    • ~/.gitconfig
  • local (per repository)
    • <repo-root>/.git/config

The final config will be merged in this order.

[!TIP] 💡 TIP You can display the final values with git config --list

📄 Included Config

We already modified the default system config file:

Key Section Description
editor [core] Defines code-server as git edit to open files.
autcrlf [core] Disables automatic line ending conversion. Should be handeled by the editor
helper [credential] Enables saving plain credentials for git remotes.
filesEncoding [i18n] Sets utf-8 as default encoding.
default [push] Uses simple branch name matching strategy.
lg1 [alias] Adds alternate log output layout in graph style
lg2 [alias] Adds extended graph log layout.
cfetch [alias] Adds alias for fetch with --prune and --tags . cfetch stands for clean fetch

There are also some Phabricator workflow inspired helpers:

Key Section Description
feature <branch> [alias] Starts a new feature branch from updates master and checks out the new branch.
wip [alias] Stages all current changes and creates a wip (work in progress) commit.
squish [alias] Takes all open workdir changes and add them to the latest commit.
pod [alias] Tries to push current branch to origin/dev.
poc <branch> [alias] Takes current branch and tries to push it to a new remote one.

Git bash Completion

Git bash completion is already enabled in the arkanum image.

Referenced Source Files

::: code-group <<< @/../Dockerfile#git{Dockerfile:line-numbers} <<< @/../gitconfig-system{ini:line-numbers} :::