Monthly Archives: May 2017

Mirroring a Git repository

Cloning a repository locally and changing git remote didn’t work for me. Here is a clean way to achieve the same. git clone –bare https://bitbucket……/your-repo.git cd your-repo.git git push –mirror https://bitbucket……/mirror-repo.git cd ../ rm -rf  your-repo.git   Advertisements

Posted in Uncategorized | Leave a comment

Mongo Aggregate query using date part of ISODate.

Most of the time we only need date part of  iso date in any document during an aggregation. Here is how to get the date part for aggregation, Project ( $project ) as a new filed, say “considered_date” Group with the … Continue reading

Posted in Uncategorized | Leave a comment