3 ms·
I tried the same thing a few months ago (this lasted 58 days), but some days you just don’t want to work. A few notes: - it’s the time of the commit which is
by hk__2 13y ago
I tried the same thing a few months ago (this lasted 58 days), but some days you just don’t want to work.
A few notes:
- it’s the time of the commit which is important, not the push. So you can contribute on your projects locally if you don’t have Internet access (e.g. on vacations), and then push at the end of the week. It’ll be the same as having pushed everyday during one week (this works with personal projects, be careful with projects where there are other contributors)
- Only contributions on 'master' are counted by GitHub, so if you use multiple branchs for new features / bug fixes, the contributions will count only when (and if) you’ll merge them into master
- ryanseys 13y agoI'm glad someone can relate to that feeling of not wanting to work. The master branch thing was annoying as well especially if you work regularly on separate branches in larger projects.
- LeonidasXIV 13y agoYes, exactly this. Every time I think I could work on my side branch it feels like this is not really "worth" it. Sucks. Actually, it is not the master branch. It is the default branch. I have a repo with a gh-pages branch, this works as well.
- marblar 13y agoThis isn't really in the spirit of what you're trying to do, but you can set the --date of the commit, or even amend the commit after the fact if you haven't pushed.
- kanzure 13y agoYou want to set both GIT_COMMITTER_DATE and GIT_AUTHOR_DATE when you git commit.
- CWIZO 13y agoAs far as I know contributions to master (or default) and gh-pages count.