I don't want to search the same question one time by one time!
export GOPATH=/usr/lib/golang
godoc -http=:6060# Example of YaHei Consolas Hybrid
mkdir /usr/share/fonts/truetype/Yahei
cp yahei*.ttf /usr/share/fonts/truetype/Yahei
cd /usr/share/fonts/truetype/Yahei
# 创建字体的fonts.scale文件,它用来控制字体旋转缩放
sudo mkfontscale
# 创建字体的fonts.dir文件,它用来控制字体粗斜体产生
sudo mkfontdir
# 建立字体缓存信息,也就是让系统认识该字体
sudo fc-cache -fv- Create a GitHub account
- Generate ssh key at local
ssh-keygen -t rsa -C "your_email@youremail.com"here your_emaie is your email address.
- Add SSH keys in GitHub
- Choose Account Settings->SSH Keys
- Choose Add SSH Key, filled a tile and paste your public key
- Test
ssh -T git@github.comif the message as following,
The authenticity of host 'github.com (192.30.255.113)' can't be established.
RSA key fingerprint is xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'github.com,192.30.255.113' (RSA) to the list of known hosts.
Hi YYYYYY! You've successfully authenticated, but GitHub does not provide shell access.
it indicates you can connect with Github.
- Config
# set user name and email
git config --global user.name "your_name"
git config --global user.email "your_email"- Clone
Using Copy to clipboard in Clone or Download of repository to copy git address
git clone git_address- Commit
After some modifications, we need to commit it to github as following
# add modification to local reposity
git commit -m "your_message" your_modified_files
# push local modification to github
git push origin masterSee Also