随笔分类 -  git

摘要:`git diff diff filter=M` 阅读全文
posted @ 2019-04-29 16:30 LisPythoniC 阅读(2858) 评论(0) 推荐(0)
摘要:参考:https://stackoverflow.com/questions/22827239/how to make git properly display utf 8 encoded pathnames in the console window 阅读全文
posted @ 2018-08-31 15:01 LisPythoniC 阅读(610) 评论(0) 推荐(1)
摘要:比如我只关心所有office文档并排除掉~开头的辅助文件: 阅读全文
posted @ 2018-08-31 08:09 LisPythoniC 阅读(996) 评论(0) 推荐(0)
摘要:其实博客园网站速度挺快的, 但是markdown的显示没有github美观. 尤其是代码高亮这一块. 近日发现github pages + vue + github api + stackedit 能够实现一个简易美观的博客, 还能自定义页面. 虽然缺少了评论(实际上可以通过disqus实现,但目前 阅读全文
posted @ 2017-07-01 10:25 LisPythoniC 阅读(143) 评论(0) 推荐(0)
摘要:``` sudo add-apt-repository ppa:git-core/ppa sudo apt-get update ``` 阅读全文
posted @ 2017-06-26 19:16 LisPythoniC 阅读(277) 评论(0) 推荐(0)
摘要:参考: https://stackoverflow.com/questions/5807137/how to revert uncommitted changes including files and folders `git reset hard && git clean fd` 阅读全文
posted @ 2017-06-13 23:30 LisPythoniC 阅读(238) 评论(0) 推荐(0)
摘要:假设路径为/project/path/ 设定git仓库可以直接被远程推送(需要较新的git版本,比如2.7) 设定本仓库被远程push之后的行为 设定为可执行 chmod a+x post receive 设定本仓库本地pull之后的行为 完工 阅读全文
posted @ 2016-12-16 17:16 LisPythoniC 阅读(573) 评论(0) 推荐(0)
摘要:比如你要清空文件 阅读全文
posted @ 2016-10-29 18:34 LisPythoniC 阅读(852) 评论(0) 推荐(0)
摘要:安装nodejs https://nodejs.org/en/ 安装webpack和其他一些常用的 npm install g node gyp webpack coffee script 监控 webpack p progress dispaly chunks watch color config 阅读全文
posted @ 2016-08-15 17:40 LisPythoniC 阅读(391) 评论(0) 推荐(0)
摘要:监听端 例如nginx或Python,php,rails等后端 git hooks端 位于.git/hooks/post merge, 表示发生merge(包含git pull)后的操作 阅读全文
posted @ 2016-08-05 17:16 LisPythoniC 阅读(397) 评论(0) 推荐(0)
摘要:``` set subl="C:\Program Files (x86)\Sublime Text 3\subl.exe" set git-bash="C:\Program Files\Git\git-bash.exe" for %%x in ("C:\projects\jarsj","C:\projects\jasygl","C:\projects\wdksw","c:\cloud") do (... 阅读全文
posted @ 2016-04-13 16:45 LisPythoniC 阅读(416) 评论(0) 推荐(0)
摘要:``` #!/bin/bash git --git-dir=/var/www/domain/.git --work-tree=/var/www/domain pull uwsgi --reload /tmp/domain service nginx restart ``` 阅读全文
posted @ 2016-04-12 08:53 LisPythoniC 阅读(241) 评论(0) 推荐(0)
摘要:`git fetch && git reset hard origin/master` 阅读全文
posted @ 2016-04-09 17:24 LisPythoniC 阅读(178) 评论(0) 推荐(0)
摘要:需求情景 就像金山快盘同步盘那样, 在开发环境windows 10和部署环境Ubuntu server 14.04之间建立同步关系.比如windows端多了一个a.txt文件,你推送后,Ubuntu端也就会增加一个同样的a.txt文件.注意,现在网络上许多关于git远程仓库的教程其实都不是把文件原原 阅读全文
posted @ 2016-02-27 13:59 LisPythoniC 阅读(230) 评论(0) 推荐(0)