Medium
In the command line, during an interactive rebase, I define my list of commits to be reworked as follows:
#p 1234561 Commit 1
p 1234562 Commit 2
p 1234573 Commit 3
d 1234564 Commit 4
f 1234565 Commit 5
p 1234566 Commit 6
p 1234567 Commit 7
What is the result?
Author: IpponStatus: PublishedQuestion passed 1938 times
Edit
4
Community Evaluations
Maxime Javaux
15/04/2024
"Une explication serait top. J'ai répondu à vide car je n'ai pas compris. J'ai analysé la réponse, je trouve que la logique de la première lettre, mais je ne comprends toujours pas.
Hugo
26/04/2024
Lors d'un rebase interactif, il est possible de choisir les commits que l'on veut garder, et la façon de les garder.
Ici, le premier est commenté, donc supprimé. Les numéros 2 et 3 sont conservés (p pour pick), le 4 est supprimé (d pour drop), le 5 est fusionné avec celui du dessus (f), et les 6 et 7 sont conservés (pick)
8
Remove an unnecessary commit in an interactive rebase in the command line.4
The `git reset --hard` command removes all changes from the working directory.4
What does the `git pull` command do, executed without an option?3
Create a new branch in Git6
How to merge branch M2 into branch C44
How to commit a change in Git5
Create a git alias to checkout a branch