Skip to content
Go back

termux

Published:  at  21:58

On this page

安装 termux

F-Droid 上安装 termux

获取存储访问权限

termux-setup-storage

~ 下就会多个 storage 目录

https://wiki.termux.com/wiki/Termux-setup-storage

https://www.reddit.com/r/termux/comments/1fd6jme/it_appears_that_directory_storage_already_exists/

配置 ssh 密钥

生成:

ssh-keygen -t ed25519 -C "[email protected]"

生成在 ~/.ssh 目录下

公钥配置到 https://github.com/settings/keys

安装 git

pkg install git

配置 git

git config --global user.name "name"
git config --global user.email "[email protected]"
mkdir ~/storage/shared/github
cd ~/storage/shared/github
git clone xxx
cd xxx

设置安全目录以便执行 git 命令

git config --global --add safe.directory ~/storage/shared/github/xxx

默认进入某个目录

nano ~/.bashrc
cd /你的目标目录路径/

在 nano 编辑器中,按 Ctrl + X,然后按 Y 保存更改,最后按 Enter 退出


Suggest Changes

Previous Post
My Windows
Next Post
question

Most Related Posts

  • My Linux

    Updated:  at  11:31

    my linux

  • Linux Basic Command

    Updated:  at  00:20

    Linux Basic Command

  • WSL 基本使用

    Published:  at  12:40

    WSL (Windows Subsystem for Linux) 的基本安装、配置、使用方法以及常见问题的解决方案。

  • react native

    Published:  at  22:38

    react native

  • My Mac

    Updated:  at  12:55

    my mac