摘要: $ git log --graph --oneline$ git reset --hard 版本号 用 reflog 挽救错误的重置[jackluo@localhost demo]$ git reflog show master |head -5重置$ git reset --hard master@{2}ls $ git log --onelinegit reflog show master |head -5=============================git clean -nd 删除git clean -fd 强制删除git status -s================= 阅读全文
posted @ 2013-12-18 18:31 jackluo 阅读(434) 评论(0) 推荐(0) 编辑
摘要: 当在终端执行sudo命令时,系统提示“ jackluo is not in the sudoers file”:$ sudo lsPassword:jackluo is not in the sudoers file. This incident will be reported.1.切换到超级用户:$ su2.打开/etc/sudoers文件:$vi /etc/sudoers3.修改文件内容:找到“root ALL=(ALL) ALL”一行,在下面插入新的一行,内容是“cuser ALL=(ALL) ALL”,然后在vi键入命令“wq!”保存并退出。注:这个文件是只读的,不加“!”保存会失败 阅读全文
posted @ 2013-12-18 10:37 jackluo 阅读(714) 评论(0) 推荐(0) 编辑