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