- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 git技巧:删除在本地有但在远程库中已经不存在的分支
上篇 讲到用$ git remote show origin可以查看远程库的一些信息,及与本地分支的信息。有时候可能遇到如下情况$ git remote show origin* remote origin Fetch URL: ... .git Push URL: ... .git HEAD branch: master Remote branche
2012-12-29 13:07:27 25569
原创 git push 操作
git push 的格式详见 这里。之前 git push 的默认操作是matching:all your branches were sent to the remote as long as there already are branches of the same name over there.在新出的 Git-1.8.0 中提到在下个版本中(注意不是1.8.
2012-12-27 11:36:21 4930
原创 Linux 如何重启 apache
httpd -k restart关键是找到httpd这个文件如果[root@test bin]# httpd restart-bash: httpd: command not found明显是bash在path所指的目录下找不到httpd,试试找到它,然后用绝对路径。比如我们这里是/usr/local/apache2/bin/httpd -k restart
2012-12-27 10:57:12 727
原创 git技巧:综合
查看git版本$ git --versiongit version 1.7.11.msysgit.1查看git所有配置项$ git config -lcore.symlinks=falsecore.autocrlf=truecolor.diff=autocolor.status=autocolor.branch=autocolor.interactive=tr
2012-12-27 10:54:11 1349
转载 Git 1.8.0 改进内容
Git v1.8.0 Release Notes========================Backward compatibility notes----------------------------In the next major release (not *this* one), we will change thebehavior of the "git push"
2012-12-27 10:36:16 1070
原创 git技巧:配置和删除配置
git配置某一项:$ git config alias.co checkoutgit删除某一项配置:$ git config --unset alias.co
2012-12-27 10:34:47 16833
原创 git:更改远程仓库指向 remote url
更改仓库指向: #仅修改.git/config文件中repositories的url$ git remote set-url origin git@github.com:test/thinkphp.git当然,还有一种方法哦,那就是$ git config -e直接编辑其中origin的url就行了,退出时记得保存[core] reposito
2012-12-27 10:32:39 15277
转载 个性化你的git log
git log命令可一接受一个--pretty选项,来确定输出的格式.如果我们只想输出hash$ git log --pretty=format:"%h"git用各种placeholder来决定各种显示内容:下面内容来自这里%H: commit hash%h: 缩短的commit hash%T: tree hash
2012-12-27 10:28:55 990
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人