Tips and tricks
Did you know that you can use different email addresses depending on the organization you are member of? Are you aware of how much disk space your repository takes? If no, read the following section, and learn how to perform these actions.
Finding the size of your repositories
If you are curious to know how big your repositories have become, you can visit https://github.com/settings/repositories and see it for yourself. Remember that GitHub also counts the size of the .git
directory, so if you have thousands of commits, the repository's size will be greater than its actual size (by actual size, I mean whatever files you see on GitHub).
For example, the diaspora
repository at the time of writing this book seems to be 102 MB
:

If I were to remove the .git
directory, the size would be much smaller. Let's test it by using the following commands:
git clone https://github.com/diaspora/diaspora
du -sh diaspora
rm -rf diaspora/.git
du -sh diaspora
Removing the .git
directory gets the size...