linux-随笔
UBUNTU版本:24.04.2 LTS
1. 关于中文输入法
我希望的效果是英文显示,但可以使用中文输入法,配置如下:

主要就是这里要选择IBus类型,不然firefox没办法中文输入,具体原因待分析


2. 常用命令
git配置移动硬盘为远程仓库
git init –bare repo.git
本地仓库进行关联
git remote add usb /addr
推送数据
git push usb master
git pull usb master
以下错误:
$ git init
warning: templates not found in /home/ja/share/git-core/templates
hint: Using ‘master’ as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config –global init.defaultBranch
hint:
hint: Names commonly chosen instead of ‘master’ are ‘main’, ‘trunk’ and
hint: ‘development’. The just-created branch can be renamed via this command:
hint:
hint: git branch -m
Initialized empty Git repository in /tmp/new/.git/
解决:
git config –global init.defaultBranch master

