Posts

Showing posts with the label git

Get commits between two tags in Git

We often need to get commits between two git tags. For example, we want to prepare a release note. So we want to get the commit messages between the two release tags. Here is the command to do this: git log --pretty=oneline tagA...tagB # three dots Example: git log --pretty=oneline v3.9.0...v3.9.1 Source:  https://stackoverflow.com/questions/5863426/get-commit-list-between-tags-in-git

Hosting a Git Server

I've been searching for the last couple of days to find which software is best for hosting own git server like github , bitbucket or gitlab . I've found some solution and I'm going to share it will everyone. GitLab Another great software is GitLab. Most probably, this is the best of all choices. Installing it on Ubuntu is very easy and straightforward as they provide a deb package file. But installing from source is a long, complex process. Moreover you may face some trouble regarding dependency of other packages. GitLab can be downloaded for free from here . RhodeCode RhodeCode is another solution which is written in python. It also provides a nice installer script which will guide you through the installation process.  Gogs Gogs  is the very new solution written in Go language. It has a nice UI and is very easy to setup.  Bitbucket If you are interested to pay some money, choose the Bitbucket . Price is not high and you'll get all the awesome feat...