I often find myself in a situation where I have committed to early and forgot to add necessary files (it's like sending an e-mail without attachment).
In this case if I have not already pushed that commit, I can edit it locally with git commit --amend.
I can't stress that engouh: Only ever do this with local commits which have not already been pushed to a remote repository!
Have fun using git!
More info on https://git-scm.com/book/en/v2/Git-To...
Sur cette page du site, vous pouvez voir la vidéo en ligne How to add forgotten files with git commit --amend durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur One Minute Git 01 décembre 2021, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 138 fois et il a aimé 1 téléspectateurs. Bon visionnage!