rm -rf my old project files and keep my workspace very clean. Let’s say it’s a bad habit after working with SVN for several years and relying on server backups. Oh yes, I am not keeping backups of my projects and so comfortable with it!
Bitbucket is cool with unlimited private repos but the downtime they had yesterday proved that you shouldn’t rely on it if you don’t have copies of your repositories on your own disk. I wrote a small console application using symfony console component to sync all repositories of a user by utilizing bitbucket API.
Basically, you give your bitbucket credentials and it clones all your git repositories.
Installation and Usage
1 2 3 4
You can choose the path of repositories:
To get help about the command:
The ironic part is that project is hosted at bitbucket. I think I should define another remote like github. :)
Notice that repositories are cloned over https schema including your username and password. I mean repositories will have origins with uris like
https://username:[email protected]/. If this is a security problem for you, don’t use the application!