Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

day这个参数好像没用啊 #1

Closed
ahmczsy opened this issue Jun 19, 2018 · 6 comments
Closed

day这个参数好像没用啊 #1

ahmczsy opened this issue Jun 19, 2018 · 6 comments

Comments

@ahmczsy
Copy link

ahmczsy commented Jun 19, 2018

这个需要写个cron每天执行一遍吗?

@jjsty1e
Copy link
Owner

jjsty1e commented Jun 19, 2018

  1. 需要的,days这个参数是指定要给过去的多少天提交commit,比如365可以指定最近的一年
  2. 不需要cron,是为过去生成commit,而不是将来

@ahmczsy
Copy link
Author

ahmczsy commented Jun 20, 2018

我执行这个命令后

./gitfool path 365 --push

一直提示这个信息
Try 'date --help' for more information.
date: invalid option -- 'v'

之后提示完成后,我看了下commit log 都是同一天的commit
是我用的姿势不对吗

@jjsty1e
Copy link
Owner

jjsty1e commented Jun 20, 2018

你的path不对啊,path也是一个变量,是你git仓库的目录

@jjsty1e
Copy link
Owner

jjsty1e commented Jun 20, 2018

@ahmczsy 在你的仓库目录执行下面的代码也行:

curl -s https://raw.githubusercontent.com/Jaggle/Gitfool/master/gitfool| sh -s `pwd` 365 --push

@ahmczsy
Copy link
Author

ahmczsy commented Jun 20, 2018

我知道path是变量,在我执行的时候是仓库目录

curl -s https://raw.githubusercontent.com/Jaggle/Gitfool/master/gitfool| sh -s `pwd` 365 --push

在仓库目录下执行这个命令还是提示同样的错误

img

@jjsty1e
Copy link
Owner

jjsty1e commented Jun 20, 2018

发现是系统兼容性问题,目前已修复,你可以再试试 @ahmczsy

@ahmczsy ahmczsy closed this as completed Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants