随笔分类 -  git

git
摘要:原文在此, 建议阅读, 我把关键步骤抽出来了, 方便概览 (也就是add remote upstream, fetch upstream, rebase, 再push) Step 1: Forking a repo Step 2: Making changes and submitting Pull 阅读全文
posted @ 2016-04-05 15:52 $walker 阅读(283) 评论(0) 推荐(0)
摘要:报错会如下:/usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such f... 阅读全文
posted @ 2014-10-31 01:05 $walker 阅读(552) 评论(0) 推荐(0)
摘要:远端删除文件而不影响本地文件git rm [-r]--cached file_or_dir_name利用.gitignore来自动删除所有匹配文件我试过网上推荐的写法git rm --cached git ls-files -i --exclude-from=.gitignore gitcommit -m 'Removed all files that are in the .gitignore'git push origin master --exclude-from=.gitignore顺便可以简写成-X .gitignore,所以是这样:git rm --cached g 阅读全文
posted @ 2014-02-14 12:02 $walker 阅读(463) 评论(0) 推荐(0)