Skip to content
Snippets Groups Projects
Commit a8129ac8 authored by FILIPPONE Jerome's avatar FILIPPONE Jerome
Browse files

Upload New File

parent be799d55
No related branches found
No related tags found
No related merge requests found
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!
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment