
git
day walker
相信明天会更好的码农一枚
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
彻底删除GIT中的文件,节省空间
不小心上传了个.SQL,du -sh 查看,库有60M, 打算从GIT库里彻底删掉它,查了好久,这么进行: git filter-branch --index-filter 'git rm -r --cached --ignore-unmatch path/to/your/file' HEAD git push origin master --force rm -rf .git/refs/原创 2013-10-08 11:33:33 · 2981 阅读 · 0 评论 -
git 克隆某一个分支branch的内容
克隆某一个branch git clone -b mybranch git://sub.domain.com/repo.git原创 2013-10-14 10:04:27 · 3557 阅读 · 0 评论 -
解决github push错误The requested URL returned error: 403 Forbidden while accessing
github push错误: git push error: The requested URL returned error: 403 Forbidden while accessing https://github.com/wangz/future.git/info/refs git version 1.7.1 OS:CENTOS 解决方案: vim .git/config原创 2013-09-11 09:51:38 · 100722 阅读 · 30 评论 -
git 冲突的解决
git 撤销commit gitcommit撤销 如果不小心commit了一个不需要commit的文件,可以对其进行撤销。 先使用git log 查看 commit日志 commit 422bc088a7d6c5429f1d0760d008d86c505f4abe Author: zhyq0826 Date: Tue Sep 4 18:19:23原创 2013-04-12 02:18:08 · 2309 阅读 · 0 评论