摘要: git 一、git常用命令 1提交代码 git add . //把修改的或增加的文件添加到本地库里 git commit -am “说明性文字” git pull //从服务器上更新代码,避免覆盖别人的代码 git push //把自己修改的上传到服务器2查看状态 git status3解决冲突 当 阅读全文
posted @ 2017-03-20 16:29 baoguok 阅读(1764) 评论(0) 推荐(0) 编辑
摘要: hg 拉取他人分支: 阅读全文
posted @ 2017-03-20 16:27 baoguok 阅读(356) 评论(0) 推荐(0) 编辑
摘要: To have launchd start redis at login: ln -sfv /usr/local/opt/redis/*.plist ~/Library/LaunchAgents Then to load redis now: launchctl load ~/Library/Lau 阅读全文
posted @ 2017-03-20 16:25 baoguok 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 修改服务器主机名: CentOS 7 / Fedora version 18 and above Enter the following command to set the hostname, replacing plato with the hostname of your choice: ho 阅读全文
posted @ 2017-03-20 16:24 baoguok 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 1. mercurial的使用 hg和git有着无数的相似之处,都是分布式版本控制,都是有分支。git我只是在提交自己的项目时使用,很多的东西还没用到,不过工作中使用的是hg,每天都在多人合作代码,常会遇到合并分支时出现文件冲突、推代码时出现多个相同的分支。 什么是分支,分支是干什么用的?像以前传统 阅读全文
posted @ 2017-03-20 16:22 baoguok 阅读(1008) 评论(0) 推荐(0) 编辑