
git
牛仔好鬼忙
Hope is a good thing, maybe the best of things and no good thing ever dies!
展开
-
git 自动转换行符的坑爹案例
本人写的脚本都是在unix上运行的,但是编写有时候喜欢使用git拉去到windows的ide进行编写,毕竟我的unix只有命令行的没有ide, 殊不知有一天我的sh执行时出现错误 -bash: ./dailytask.sh: /bin/sh^M: bad interpreter: 没有那个文件或目录 使用vim的命令:set ff?来查看文件格式发现已经是dos,修改格式为unix,命令原创 2015-01-09 10:46:09 · 20209 阅读 · 0 评论 -
git 使用笔记
从零开始拉取远端分支 git clone http://xxx.git git fetch git branch -r // 查看远端分支 git checkout -b local-branch-name origin/remote-branch-name原创 2014-12-05 20:18:28 · 566 阅读 · 0 评论