This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git, revenir en arrière d'1 commit sur la branche courante | |
# en récupérant les modifications du commit dans l'espace de travail | |
git reset HEAD^ --mixed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Git, revenir en arrière d'1 commit sur la branche courante | |
# avec un index et un espace de travail propre | |
git reset HEAD^ --hard |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# exemple si la Pull-Request n° 50 a été faite sur la branch X | |
git checkout origin/X | |
git checkout -b X | |
git fetch origin refs/pull/50/head | |
git merge FETCH_HEAD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git log --oneline --graph --decorate | |
git log --oneline --graph --decorate <branch> | |
git log --oneline --graph --decorate <tag> | |
git log --oneline --graph --decorate <hash> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Contributeurs par nombre de commits (sans les commits de merge) | |
git shortlog -s -n --no-merges | |
git shortlog --summary --numbered --no-merges | |
# Contributeurs (avec mail) par nombre de commits (sans les commits de merge) | |
git shortlog -s -n --no-merges -e | |
git shortlog -s -n --no-merges --email | |
# Contributeurs par nombre de commits (sans les commits de merge) | |
# pour une branche "develop" ou un tag "v4.0.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ouvrir un shell dans un conteneur | |
docker exec -ti <container_id> /bin/bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Duplication des icônes sur le bureau | |
########################################### | |
# source : https://doc.ubuntu-fr.org/cinnamon#duplication_des_icones_sur_le_bureau | |
# Il se peut parfois que les icônes du bureau apparaissent en double et génèrent en apparence un bug d'affichage. | |
# La commande suivante devrait résoudre immédiatement le problème: | |
###################################################################### | |
gsettings set org.gnome.desktop.background show-desktop-icons false | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Forcer la date "Auteur" (date du commit initial) / GIT_AUTHOR_DATE | |
git commit --amend --date="2016-08-21 17:18:43 +0200" | |
# Forcer la date "Auteur du commit" (date du commit après éventuel rebase) | |
export GIT_COMMITTER_DATE="Wed Feb 16 14:00 2037 +0100" | |
git commit --amend | |
unset GIT_COMMITTER_DATE | |
# source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# création d'un lanceur d'application sur le bureau Ubuntu 16.04 | |
sudo apt-get install gnome-panel | |
gnome-desktop-item-edit ~/Bureau/ --create-new | |
# source : https://forum.ubuntu-fr.org/viewtopic.php?id=1586501 |
OlderNewer