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 0000000000000000000000000000000000000000..4fa4d124384e78ae2e96712c425beffd197ac6ff --- /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! +