2024-02-19 14:41:57 +01:00
|
|
|
|
[![git3moji–v1.0](https://img.shields.io/badge/git3moji–v1.0-%E2%9A%A1%EF%B8%8F%F0%9F%90%9B%F0%9F%93%BA%F0%9F%91%AE%F0%9F%94%A4-fffad8.svg?style=flat-square)](https://robinpokorny.github.io/git3moji/)
|
2024-02-27 16:37:49 +01:00
|
|
|
|
· [source code on Gitea](https://gitea.jaandrle.cz/jaandrle/dotfiles)
|
|
|
|
|
· [*mirrored* on GitHub](https://github.com/jaandrle/dotfiles)
|
2024-02-27 16:42:20 +01:00
|
|
|
|
· [older version on GitHub](https://github.com/jaandrle/dotfiles-old)
|
2024-02-19 14:41:57 +01:00
|
|
|
|
|
2024-02-28 12:48:12 +01:00
|
|
|
|
# dotfiles **(Termux variant)**
|
2024-02-16 22:18:47 +01:00
|
|
|
|
This repository contains my dotfiles. They are managed by using `git clone --bare`,
|
|
|
|
|
see for example [How to Store Dotfiles - A Bare Git Repository \| Atlassian Git Tutorial](https://www.atlassian.com/git/tutorials/dotfiles).
|
2024-02-16 21:26:56 +01:00
|
|
|
|
|
2024-02-19 15:34:56 +01:00
|
|
|
|
## Quick links
|
|
|
|
|
- [On a new machine](#on-a-new-machine)
|
|
|
|
|
- [Files overview](#files-overview)
|
|
|
|
|
|
|
|
|
|
## Files overview
|
2024-02-19 14:41:57 +01:00
|
|
|
|
|
2024-02-16 22:18:47 +01:00
|
|
|
|
## On a new machine
|
|
|
|
|
1. install git
|
|
|
|
|
1. `cd ~`
|
2024-02-28 12:48:12 +01:00
|
|
|
|
1. `gd_branch=main-termux` (see also branches `main`)
|
2024-02-19 15:34:56 +01:00
|
|
|
|
1. `git clone --bare --branch $gd_branch --depth 1 --recurse-submodules --shallow-submodules git@jaandrle.cz:jaandrle/dotfiles.git ~/.dotfiles`
|
2024-02-18 11:57:39 +01:00
|
|
|
|
1. `alias gitdotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"'`
|
|
|
|
|
1. `gitdotfiles config --local status.showUntrackedFiles no`
|
2024-02-16 22:18:47 +01:00
|
|
|
|
1. you may also need to use
|
2024-02-18 11:57:39 +01:00
|
|
|
|
1. `gitdotfiles reset` (`git-dotfiles reset --hard HEAD`)
|
|
|
|
|
1. `gitdotfiles checkout -f`
|
|
|
|
|
1. `gitdotfiles submodule update --init --recursive`
|
2024-02-28 14:20:28 +01:00
|
|
|
|
|
|
|
|
|
## Log
|
|
|
|
|
- for some reason I have to add branch to `.git/config` manually.
|
|
|
|
|
```ini
|
|
|
|
|
[branch "main-termux"]
|
|
|
|
|
remote = origin
|
|
|
|
|
merge = refs/heads/main-termux
|
|
|
|
|
```
|