I have a quick tip to give you guys today on how to improve your usage of GitHub.
I know many of you use GitHub for your private and public projects. When you create a new GitHub project, you get the Git repository and the URL to fetch it. It’s shown this way:
Then, you normally do git clone firstname.lastname@example.org:mgonto/factory_pal.git
As you might know, Github also provides us with a Wiki, where we can put text and everything we want.
Actually, the wiki is another Git repository that we can access. We just have to add a “.wiki” before the “.git” part of the url. So for the email@example.com:mgonto/factory_pal.git, the wiki repository is firstname.lastname@example.org:mgonto/factory_pal.wiki.git.
You can clone that directory and have a secondary Git repository for anything you want.
So, what are possible usages of this?
I usually have some documentation for the project. This documentation can be Mockups, client meetings, UMLs diagrams and so on. I used to have in my Github repository a code and docs folder. Now, I store the code in the regular repository where I can have pull requests, and the documentation in the wiki repository, together with the wiki pages. This makes it easier to separate our concerns in my opinion.
Another usage would be to have an extra Git private repository