# 习惯用vim去编辑,其实还有别的方式$ vim ~/.bash_profile
The program vim is not installed. Install it by executing:
pkg install vim
or
pkg install vim-gtk, after running pkg in x11-repo
or
pkg install vim-python
这里我执行了pkg install vim,然后你懂的。
然后cd进项目路径,查看配置信息:
1
2
3
$ git config --list
fatal: detected dubious ownership in repository at '/xxx/xxx' To add an exception for this directory, call:
git config --global --add safe.directory /xxx/xxx
跟着提示将我们的项目路径设置成安全目录就行。
1
2
3
$ ssh-keygen -t rsa -C "your@email.com"The program ssh-keygen is not installed. Install it by executing:
pkg install openssh
跟着提示执行pkg install openssh,然后遇到连续四个CANNOT LINK EXECUTABLE "ssh-keygen": library "libcrypto.so.3" not found。
这里需要执行pkg install openssl安装相关依赖,再重新执行安装命令就可以了。
1
2
$ git fetch origin
CANNOT LINK EXECUTABLE "/data/data/com.termux/files/usr/libexec/git-core/git-remote-https": library "libssl.so.1.1" not found
$ git fetch origin
fatal unable to access 'https://github.com/xxx.git': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream
# 解决:$ git config --global http.version HTTP/1.1