Archived
Which of these statements about Git is true?
5
Community Evaluations
Auteur anonyme
13/11/2021
Bonjour Viencent, car c'est changer officiellement du nom "master" au nom "main".
Maxime
14/11/2021
SirineS Git n'a pas changé la branche par défaut de master à main, ce sont les hebergeurs de repo git du type gitlab ou github qui ont changés la branche créée par défaut.
Clément Devos (W3D Team)
20/12/2021
C'est une volonté d'implémentation chez Github/gitlab, mais dans la documentation de git, c'est toujours master https://git-scm.com/book/en/v2/Git-Branching-Branches-in-a-Nutshell#:~:text=The%20default%20branch%20name%20in,the%20last%20commit%20you%20made. On ne changera pas la question pour l'instant, github et gitlab sont majoritaires mais optionnels.
4
The `git reset --hard` command removes all changes from the working directory.6
How to merge branch M2 into branch C48
Remove an unnecessary commit in an interactive rebase in the command line.4
What does the `git pull` command do, executed without an option?4
How to commit a change in Git5
Create a git alias to checkout a branch4
What is the SHA1 of the commit that is the parent of the commit with SHA1 '7'?