摘要: git stash git pull git stash pop git stash pop: 从Git栈中读取最近一次保存的内容,恢复工作区的相关内容。由于可能存在多个Stash的内容,所以用栈来管理,pop会从最近的一个stash中读取内容并恢复。 git stash list: 显示Git栈内 阅读全文
posted @ 2017-02-13 20:06 SapphireCastle 阅读(312) 评论(0) 推荐(0) 编辑
摘要: # Packages # ############ # it's better to unpack these files and commit the raw source # git has its own built in compression methods *.7z *.dmg *.gz *.iso *.jar *.rar *.tar *.zip # L... 阅读全文
posted @ 2017-02-13 20:05 SapphireCastle 阅读(156) 评论(0) 推荐(0) 编辑
摘要: $ git push --set-upstream origin ljz-v1.0.0-2 注意:在前一个分支的基础上创建新分支 把master分支的内容更新到当前分支,打补丁 http://blog.csdn.net/hudashi/article/details/7664631/ http:// 阅读全文
posted @ 2017-02-13 20:04 SapphireCastle 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Git push [远程分支] [本地分支] 建立关联 Git branch --set-upstream mybranch origin/mybranch Git push 简化git push书写 $ git gpush 简化git push HEAD:refs/for/master,命令好长, 阅读全文
posted @ 2017-02-13 20:03 SapphireCastle 阅读(286) 评论(0) 推荐(0) 编辑
摘要: $ git add blash $ git commit "add blash file" $ git push -u origin master $ git rm blash $ git push origin master -f 把文件本身也删除了 --cache 文件保留,但从new file 阅读全文
posted @ 2017-02-13 20:02 SapphireCastle 阅读(1823) 评论(0) 推荐(0) 编辑
摘要: git clone -b master2 ../server 表示克隆名为master2的这个分支,如果省略-b <name>表示克隆master分支。 参考:http://blog.csdn.net/hudashi/article/details/7664396/ 阅读全文
posted @ 2017-02-13 20:01 SapphireCastle 阅读(119) 评论(0) 推荐(0) 编辑
摘要: Git知识图谱:https://segmentfault.com/a/1190000002533334 简明指南:http://rogerdudler.github.io/git-guide/index.zh.html 阅读全文
posted @ 2017-02-13 20:00 SapphireCastle 阅读(94) 评论(0) 推荐(0) 编辑
摘要: 1. 控制台中,不赞成使用这种方法,因为换个shell,你的设置就无效了,因此这种方法仅仅是临时使用,以后要使用的时候又要重新设置,比较麻烦。 这个只针对特定的shell; $ PATH="$PATH:/my_new_path" (关闭shell,会还原PATH) 2. 修改/etc/profile 阅读全文
posted @ 2017-02-13 19:55 SapphireCastle 阅读(566) 评论(0) 推荐(0) 编辑
摘要: 1.首先安装vssh 2.找到机器 3. wget http://www.centoscn.com/tool/pptpd6.sh sh pptpd6.sh 请用root帐号运行上面的命令,就会一键安装好PPTP了,完全全自动,安装结束,你的VPN用户名跟密码会自动显示在你的屏幕上面。PPTP VPN 阅读全文
posted @ 2017-02-13 19:54 SapphireCastle 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 32位CentOS执行下面命令: wget -c http://pkgs.repoforge.org/axel/axel-2.4-1.el5.rf.i386.rpm rpm -ivh axel-2.4-1.el5.rf.i386.rpm 64位CentOS执行下面命令: wget -c http:/ 阅读全文
posted @ 2017-02-13 19:53 SapphireCastle 阅读(5034) 评论(0) 推荐(0) 编辑