Plan du site  
pixel
pixel

Articles - Étudiants SUPINFO

GitKraken

Par Quentin GRUBER Publié le 16/05/2019 à 12:11:18 Noter cet article:
(0 votes)
Avis favorable du comité de lecture

Presentation of Gitkraken

GitKraken is a software that works with Git. It allows via its interface to perform all the small interactions available with Git in a simple and efficient way, without even knowing a single command! Currently used by more than one million developers worldwide on Mac Os / Windows /Linux Desbian and Ubuntu because it is cross-platform. A free version of GitKraken is available for open source projects, and for commercial projects, there is a professional license from GitKraken. There is also a version for companies.

clarification about Git/GitHub

Git is a software for managing decentralized versions. Also called the "stupid content tracker", it allows you to synchronize file directories and manage the progress of a project.

GitHub is a hosting and development management website, using Git management software. GitHub is currently the world's largest source code provider.

Start using GitKraken

How to connect

When starting the software, we can choose to create a GitKraken account or log in via an existing GitHub account or GitKraken account.

If we choose to log in via our GitHub account, then a web page opens asking us to allow GitKraken access to our GitHub account.

Create a local/hosted file directory

Once connected, this screen appears and allows us to open, clone and create a file directory.

To create a local file directory, simply click on "Start a local repo".

Then, the "initialize a Repo" window opens to let us choose the name of our directory and its location on our computer as well as some additional options.

To create a directory hosted on GitHub for example, click on "Start a hosted repo".

Then, the "initialize a Repo" window opens to let us choose the GitHub account to which our directory will be associated as well as its name, access (public or private) and location on our computer as well as some additional options.

Cloning a file directory from GitHub

On the main page, simply click on "Clone a repo".

Then, the "clone a repo" window opens to let us choose which directory to associate with our GitHub account. We can choose where it will be cloned on our computer.

Presentation of the interface

Overview of the interface

This is the interface of GitKraken in dark mode. Three other modes are available, including day mode with lighter colors. You are asked to choose which display mode you would like to use when initializing GitKraken.

Next, we will see in more detail each module of this interface.

Using the 'git add' and 'commit'

This window on the right of the interface allows you to make a commit. In the "unstaged files" box, we have the files that we have modified since the last commit. We can choose to mark a file as a staged file by clicking on it. We can also mark all the files in the "unstaged files" list by clicking on "stage all changes". These files are then present in the list of staged files. It is these files that will be indicated as changed in our commit. Then, we must choose a title for our commit, as well as a description to help us find ourselves in our different commit. Finally, just click on "commit changes' to make a commit.

Tip: By checking the "Amend" box, we can modify our last commit. (Add files, change name / description, etc...)

Using the toolbar

The GitKraken toolbar allows us to perform the following actions:

-"Undo" allows you to undo the last action as a commit for example.

-"Redo" is the exact opposite of "Undo". It allows us to go back to our last action.

"-Pull" updates the local version of the directory via remote.

"-Push" updates the version of the directory contained in the remote via the local version.

-"Branch" adds a branch to our directory.

-"Stash" hides your changes.

-"Pop" to show your changes.

Using the directory tree structure

The directory tree allows you to find your way through the progress of our project. We can see which version of the directory we have locally and see what changes have been made to the version currently online before updating our local version. The directory tree structure allows us to move between the different commits and locate an element that would produce an error by flipping through these commits. To help us in this task, we have the option to go back to a previous version of our directory by clicking on the commit that interests us and then clicking on "reset Master to commit". We can also cancel a commit that would be a problem by right-clicking on it and clicking on "revert".

Using the Code Inspector

The code inspector allows you to check the changes orchestrated by a commit. In this example, I made a commit called "translate welcome message" to translate the welcome message. The characters in red are those that have been removed from the document at this particular commit. The characters in green are the ones that have been added to this commit. We then see that I made a commit to translate "Hello Supinfo!" into "Bonjour Supinfo!".

Advantages and disadvantages

Advantages:

- ability to quickly and easily create a local/online file directory and clone one linked to our GitHub account

- good management of the elements of our file directory and the use of commit

- ability to do quick actions (such as push) using the toolbar

- good visibility of how our project is progressing thanks to the tree structure

- ability to easily notice from where an error is coming by using the code inspector and to be able to revert to a specific commit

disadvantages :

- use of a lot of RAM

- loss of time due to its launch time

Conclusion

Finally, GitKraken is useful for both novice and experienced developers and does not require any git knowledge to use it. Its intuitive and clear interface allows you to have a good management of the elements of our file directory as well as to perform actions quickly on them. It allows us to manage the progress of our project and to easily visualize the latest changes in the directory and thus locate from where some errors come from.

A propos de SUPINFO | Contacts & adresses | Enseigner à SUPINFO | Presse | Conditions d'utilisation & Copyright | Respect de la vie privée | Investir
Logo de la société Cisco, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société IBM, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Sun-Oracle, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Apple, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Sybase, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Novell, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Intel, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Accenture, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société SAP, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Prometric, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo de la société Toeic, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management Logo du IT Academy Program par Microsoft, partenaire pédagogique de SUPINFO, la Grande École de l'informatique, du numérique et du management

SUPINFO International University
Ecole d'Informatique - IT School
École Supérieure d'Informatique de Paris, leader en France
La Grande Ecole de l'informatique, du numérique et du management
Fondée en 1965, reconnue par l'État. Titre Bac+5 certifié au niveau I.
SUPINFO International University is globally operated by EDUCINVEST Belgium - Avenue Louise, 534 - 1050 Brussels