Don't let private bitbucket repos ruin your github streak! Create your own github 'bitbucket' repo and record any bitbucket commit on github without committing the code... with one command!
Developed and tested: Ubuntu 14.04
Tested: OSX
such that you have your own instance (eg: Mine is https://github.com/amsully/bitbucket-commits)
Example:
git clone https://github.com/<github name here>/bitbucket-commits.git
sudo mv /path/to/bitbucket-commits /etc/
cd /etc/bitbucket-commits
sudo cp git-commit-bitbucket /usr/bin/
Notes: The new version requires less configuration but will always push to your bitbucket-commits repo.
Now we want to push to our bitbucket repo but also let github know we are coding up a storm!
In the bitbucket repository you are working on simply add changes as normal.
git add *
Now we call one command to do everything for us.
git commit-bitbucket -m "My streak is alive and I pushed to bitbucket!"
##TODO:
- Implement error handling (currently very much only a script)
Test on Mac- Append commit messages to file rather than overwrite
- Simple formatting (date/bitbucket repo title) within auto commits
- Man pages