17. command french english
git init Initialise un nouveau dépôt Git
dans le répertoire actuel, créant
un nouveau dépôt vide.
Initializes a new Git repository in
the current directory, creating a
new empty repository.
git add . Ajoute tous les fichiers du
répertoire actuel à la zone de
préparation de Git(index), les
préparant pour un commit.
Adds all the files in the current
directory to the Git staging area,
preparing them for a commit.
git commit –m “comment” Enregistre les modifications dans
le dépôt Git, créant un nouveau
commit avec un message
descriptif.
Records the changes in the Git
repository, creating a new commit
with a descriptive message.
echo “# helloWorldJava”
>>README.md
Ajoute le texte spécifié à la fin du
fichier README.md, le créant ou
le modifiant.
Appends the specified text to the
README.md file, creating or
modifying it.
git status Affiche l'état actuel du dépôt Git. Displays the current status of the
Git repository.
23. commande english french
git remote -v Displays the list of remote repositories
associated with your local Git repository. It
shows the remote repository URLs
configured for fetching and pushing.
Affiche la liste des dépôts distants associés à
votre dépôt Git local. Elle montre les URL des
dépôts distants configurées pour la
récupération (fetch) et la poussée (push).
git push -u origin master Pushes the local commits to the remote
repository specified as "origin" and sets
up tracking for the "master" branch.The
-u flag is used to set the upstream
branch.
Pousse les commits locaux vers le dépôt
distant spécifié comme "origin" et
configure le suivi pour la branche
"master". L'option -u est utilisée pour
configurer la branche en amont
(upstream).
35. command English French
git branch Shows the branches of the local
repository
Affiche les branches du depot
local
git branch –a Shows local and distant
repositories
Afffiche les branches du depot
local et distant egalement
git log Shows the history of commits Affiche l’hstorique des commits
git branch <name_branch>
<commit id>
Creates a new branch from a
particular commit
Creer une nouvelle branche
apartir d’un commit en particulier
git checkout <branch_name> Switch to another branch Travailler sur une nouvelle
branche
git branch –D <branch_name> Delete a branch Supprimer une branche
git commit –a –m “message” Automatically add any modified
file to the staging area before
adding to the local repository
Ajoute automatiquement tout
fichier modifier a l’index (zone
preparatoire de git )avant de
commit