How to install the QGit client in Ubuntu

Source: Internet
Author: User
Tags git client
QGit is an open-source graphical Git client written by MarcoCostalba using Qt and C ++. It is a client that allows you to view version history, view submission records, and patch files in a graphic interface. It uses git command lines to execute and display the output. It provides some common functions such as browsing version history, comparison, file history, file tagging, and archiving tree. We can format and use the selected patch to submit the application, drag and drop between two or more instances, and submit the application. It allows us to use its built-in generator to create custom

QGit is an open-source graphical Git client written by Marco Costalba using Qt and C ++. It is a client that allows you to view version history, view submission records, and patch files in a graphic interface. It uses git command lines to execute and display the output. It provides some common functions such as browsing version history, comparison, file history, file tagging, and archiving tree. We can format and use the selected patch to submit the application, drag and drop between two or more instances, and submit the application. It allows us to use its built-in generator to create custom buttons to execute specific commands.

Here are a few simple steps to compile and install the QGit client in Ubuntu 14.04 LTS "Trusty.

 

1. Install the QT4 Library

To run QGit in ubuntu, install the QT4 Library first. Since apt is the default Package Manager of ubuntu and qt4 is also in the official repository, we can directly use the following apt-get command to install qt4.

  1. $ sudoapt-get install qt4-default

 

2. Download The QGit compressed package

After installing Qt4, We need to install git so that we can clone the git repository in QGit. Run the following apt-get command.

  1. $ sudoapt-get install git

Now, we need to use the following git command to clone the repository of the QGit client.

  1. $ gitclonegit://repo.or.cz/qgit4/redivivus.git
  2. Cloning into 'redivivus'...
  3. remote:Counting objects:7128,done.
  4. remote:Compressing objects:100%(2671/2671),done.
  5. remote:Total7128(delta 5464), reused 5711(delta 4438)
  6. Receiving objects:100%(7128/7128),2.39MiB|470.00KiB/s,done.
  7. Resolving deltas:100%(5464/5464),done.
  8. Checking connectivity...done.

 

3. Compile QGit

After cloning, we now go to the redivivus directory and create the makefile file for compilation. Go to the directory and run the following command.

  1. $ cd redivivus

Next, run the following command to generate a new Makefile from the qmake project file (qgit. pro.

  1. $ qmake qgit.pro

After Makefile is generated, we can finally compile the source code of qgit and generate binary. First, install make and g ++ packages for compilation, because this is a program written in C ++.

  1. $ sudoapt-get install make g++

Now we need to use the make command to compile the code.

  1. $ make

 

4. Install QGit

After the source code of QGit is compiled successfully, we will install it in Ubuntu 14.04 so that it can be executed in the system. Therefore, we will run the following command.

  1. $ sudomake install
  2. cd src/&&make-f Makefile install
  3. make[1]:Entering directory `/home/arun/redivivus/src'
  4. make -f Makefile.Release install
  5. make[2]: Entering directory `/home/arun/redivivus/src'
  6. install -m 755 -p "../bin/qgit" "/usr/lib/x86_64-linux-gnu/qt4/bin/qgit"
  7. strip "/usr/lib/x86_64-linux-gnu/qt4/bin/qgit"
  8. make[2]: Leaving directory `/home/arun/redivivus/src'
  9. make[1]:Leaving directory `/home/arun/redivivus/src'

Next, we need to copy the qgit binary file from the bin directory to/usr/bin/so that we can run it globally.

  1. $ sudocp bin/qgit /usr/bin/

 

5. Create a desktop file

Since we have successfully installed qgit in ubuntu, we can create a desktop file so that QGit can be found in the menu or starter in our desktop environment. To do this, create a new file named qgit. desktop in/usr/share/applications.

$ sudo nano /usr/share/applications/qgit.desktop

Next, copy the following row to the file.

  1. [DesktopEntry]
  2. Name=qgit
  3. GenericName = git graphical interface viewer
  4. Exec=qgit
  5. Icon=qgit
  6. Type=Application
  7. Comment = git graphical interface viewer
  8. Terminal=false
  9. MimeType=inode/directory;
  10. Categories=Qt;Development;RevisionControl;

Save and exit.

 

6. Run the QGit Client

After QGit is installed, we can start it from any starter or program menu. To run QGit under the terminal, we can do the same as below.

  1. $ qgit

This will enable the QGit Based on the graphic interface mode of the Qt4 framework.

QGit Viewer

 

Summary

QGit is a great git client based on QT. It can run on Linux, mac osx, and Microsoft Windows. It helps us easily browse the information provided by git repositories such as history, version, and branch. It reduces the need to use command lines to execute features such as browsing versions, history, and comparison, and simplifies these tasks in a graphical manner. The latest qgit version is also in the default repository. You can useApt-get install qgitCommand to install. Therefore, QGit uses its simple graphical interface to make our work easier and faster.

For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2

Via: http://linoxide.com/ubuntu-how-to/install-qgit-viewer-ubuntu-14-04/

Author: Arun Pyasi Translator: geekpi Proofreader: wxy

This article was originally compiled by LCTT and launched with the honor of Linux in China

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-09/123561.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.