From a8129ac83e5cc39d7c0c7259b5e7de2bc5491635 Mon Sep 17 00:00:00 2001 From: FILIPPONE Jerome <jerome@filippone.fr> Date: Fri, 9 Feb 2024 07:01:52 +0000 Subject: [PATCH] Upload New File --- .../EXERCICES/exercice2.txt | 54 +++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 UE701/SEMESTRE_2_2023-24/EXERCICES/exercice2.txt diff --git a/UE701/SEMESTRE_2_2023-24/EXERCICES/exercice2.txt b/UE701/SEMESTRE_2_2023-24/EXERCICES/exercice2.txt new file mode 100644 index 0000000..4fa4d12 --- /dev/null +++ b/UE701/SEMESTRE_2_2023-24/EXERCICES/exercice2.txt @@ -0,0 +1,54 @@ +SE RENDRE SUR https://learngitbranching.js.org/?NODEMO + +$ git commit +$ git branch server +$ git checkout server +$ git branch client +$ git checkout client +$ git checkout server +$ git commit +$ git branch -d client +$ git checkout server +$ git branch client +$ git commit +$ git checkout main +$ git commit +$ git commit +$ git checkout client +$ git commit +$ git commit --amend +$ git reset HEAD +$ git checkout C7 +$ git checkout client +$ git reset --hard HEAD~1 +The default behavior for resets on LearnGitBranching is a --hard, so feel free to omit that option if you get tired of typing it out in our lessons. Just remember that the default behavior on actual Git is --mixed. +$ git commit +$ git commit +$ git checkout server +$ git commit +$ git rebase --onto main server client +$ git checkout main +$ git merge client +Fast forwarding... +$ git rebase main server +$ git checkout main +$ git merge server +Fast forwarding... +$ git branch -d client +$ git branch -d server +$ git rebase -i HEAD~1 +Nothing to do... +$ git rebase -i HEAD~1 +$ git reset HEAD~1 +$ git checkout C10' +$ git merge main +Branch already up-to-date +$ git rebase --onto main HEAD +No commits to rebase! Everything is a merge commit or changes already applied +$ git branch -f main HEAD +$ git reflog +The command "git reflog" isn't supported, sorry! +$ git tag v1.0 +$ git tag -a v1.0a -m "version release" +The option "-a" is not supported! + -- GitLab