设置ubuntu 下git 的用户名和邮箱 摘自 慢慢修远路,上下求索心http://yanshaozhi.iteye.com/blog/386752 虽然我没看怎么明白 但我用第一总方法就设置好了,设置好了是不会有提示的. 设置好以后就用 :git config --list 命令查看. Guides: Tell git your user name and email address Git needs to know your username and email address to
ubuntu修改主机名 主机名在/etc/hostname文件中了,只在打开这个文件进行修改,重启计算机即可. 一.查看主机名 $ hostname #查看主机名 cdyemail 二.通过指令修改主机名 $ hostname server #修改主机名,但提示我必须用root权限 hostname: you must be root to change the host name $ sudo hostname server #修改主机名 $ hostname #查看主机名