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.
$ 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.
$ sudoapt-get install git
Now, we need to use the following git command to clone the repository of the QGit client.
$ gitclonegit://repo.or.cz/qgit4/redivivus.git
Cloning into 'redivivus'...
remote:Counting objects:7128,done.
remote:Compressing objects:100%(2671/2671),done.
remote:Total7128(delta 5464), reused 5711(delta 4438)
Receiving objects:100%(7128/7128),2.39MiB|470.00KiB/s,done.
Resolving deltas:100%(5464/5464),done.
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.
$ cd redivivus
Next, run the following command to generate a new Makefile from the qmake project file (qgit. pro.
$ 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 ++.
$ sudoapt-get install make g++
Now we need to use the make command to compile the code.
$ 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.
$ sudomake install
cd src/&&make-f Makefile install
make[1]:Entering directory `/home/arun/redivivus/src'
make -f Makefile.Release install
make[2]: Entering directory `/home/arun/redivivus/src'
install -m 755 -p "../bin/qgit" "/usr/lib/x86_64-linux-gnu/qt4/bin/qgit"
strip "/usr/lib/x86_64-linux-gnu/qt4/bin/qgit"
make[2]: Leaving directory `/home/arun/redivivus/src'
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.
$ 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.
[DesktopEntry]
Name=qgit
GenericName = git graphical interface viewer
Exec=qgit
Icon=qgit
Type=Application
Comment = git graphical interface viewer
Terminal=false
MimeType=inode/directory;
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.
$ 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