(SOLVED) Git – How to undo the last local commits ?

I accidentally committed the wrong files in Git, but haven’t pushed the validation to the server yet. How to cancel these validations from the local repository ? how to undo the last local commits ? Solution To Undo a commit and redo follow the next steps : This is what you want to undo. This […]

En Lire Plus

(SOLVED) Git – How to overwrite all commits on a branch ?

If you need to overwrite all commits on a branch , try the following steps : Check out the branch for which you want to overwrite all commits in one commit. Let’s say its called, feature_branch. Step 1 Perform a soft reset of your origin / feature_branch with your local branch masters (depending on your […]

En Lire Plus

(SOLVED) How To Switch Branch on Git ?

To Switch Branch on Git , we can use git checkout or git switch. Personally , I think the easiest way is to use git checkout command . This command enable us to switch a branch if it exist or to create a new branch if we add -b . Solution 1 To use the […]

En Lire Plus

Example : Jenkins and GitLab integration

The objective of GitLab and Jenkins integration is to allow us to trigger a Jenkins build when: A code is pushed to a repository A merge request is created. In this tutorial , we will try to integrate GitLab and Jenkins. GitLab Configuration Create build user and access token at Gitlab To create a user […]

En Lire Plus

(SOLVED) How to undo the recent local commits in Git ?

Problem : If you accidentally committed the wrong files to Git, but didn’t push the commit to the server yet. How can you undo those commits from the local repository ? Solution : This command is responsible for the undo. It will undo your last commit while leaving your working tree (the state of your files on disk) untouched. You’ll need to […]

En Lire Plus
git logo

Les commandes GIT que vous devez absolument savoir !!

Git est un système de contrôle de version distribué gratuit et open source conçu pour gérer tout, des petits projets aux très grands projets avec rapidité et efficacité. Git est facile à apprendre et a un faible encombrement avec des performances ultra-rapides. Avant un entretien ou la participation dans un projet de développement , vous […]

En Lire Plus

Les meilleurs clients Git GUI de 2020 : Toutes les plateformes incluses

Presque tous les projets de développement et de logiciels, commerciaux ou personnels, utilisent désormais Git pour le contrôle des versions. Dans cet article, nous allons expliquer ce qu’est Git en bref et recommander les meilleurs clients Git GUI pour différentes plateformes. Qu’est-ce que Git ? Git est un système de contrôle de version open-source populaire […]

En Lire Plus