Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wilder@wilder-ThinkPad-T440p:~$ git config --global user .emailgit config --global user.email "lio4455@hotmail.com"
- usage: git config [<options>]
- Config file location
- --global use global config file
- --system use system config file
- --local use repository config file
- -f, --file <file> use given config file
- --blob <blob-id> read config from given blob object
- Action
- --get get value: name [value-regex]
- --get-all get all values: key [value-regex]
- --get-regexp get values for regexp: name-regex [value-regex]
- --get-urlmatch get value specific for the URL: section[.var] URL
- --replace-all replace all matching variables: name value [value_regex]
- --add add a new variable: name value
- --unset remove a variable: name [value-regex]
- --unset-all remove all matches: name [value-regex]
- --rename-section rename section: old-name new-name
- --remove-section remove a section: name
- -l, --list list all
- -e, --edit open an editor
- --get-color find the color configured: slot [default]
- --get-colorbool find the color setting: slot [stdout-is-tty]
- Type
- --bool value is "true" or "false"
- --int value is decimal number
- --bool-or-int value is --bool or --int
- --path value is a path (file or directory name)
- --expiry-date value is an expiry date
- Other
- -z, --null terminate values with NUL byte
- --name-only show variable names only
- --includes respect include directives on lookup
- --show-origin show origin of config (file, standard input, blob, command line)
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.lio4455@hotmail.com
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.lio4455@hotmail.com
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.name lio-code
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.name Lio-code
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.lio4455@hotmail.com
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.name "Lio-code"
- wilder@wilder-ThinkPad-T440p:~$ git config --global user.email "lio4455@hotmail.com"
- wilder@wilder-ThinkPad-T440p:~$ pwd
- /home/wilder
- wilder@wilder-ThinkPad-T440p:~$ mkdir hello-world
- wilder@wilder-ThinkPad-T440p:~$ cd hello-world
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git init
- Initialized empty Git repository in /home/wilder/hello-world/.git/
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git status
- On branch master
- No commits yet
- nothing to commit (create/copy files and use "git add" to track)
- wilder@wilder-ThinkPad-T440p:~/hello-world$ mkdir mondossier
- wilder@wilder-ThinkPad-T440p:~/hello-world$ cd ..
- wilder@wilder-ThinkPad-T440p:~$ rm -rf mondossier
- wilder@wilder-ThinkPad-T440p:~$ cd hello-world
- wilder@wilder-ThinkPad-T440p:~/hello-world$ rm -rf mondossier
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git-status
- git-status: command not found
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git status
- On branch master
- No commits yet
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- readme
- nothing added to commit but untracked files present (use "git add" to track)
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git add readme.txt
- fatal: pathspec 'readme.txt' did not match any files
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git add readme.txt
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git commit -m "création du fichier readme"
- [master (root-commit) cfb8deb] création du fichier readme
- 1 file changed, 1 insertion(+)
- create mode 100644 readme.txt
- wilder@wilder-ThinkPad-T440p:~/hello-world$ nano readme.txt
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git diff
- diff --git a/readme.txt b/readme.txt
- index 632e4fe..f392008 100644
- --- a/readme.txt
- +++ b/readme.txt
- @@ -1 +1,2 @@
- Bonjour
- +ça va
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git config --global user.username Lio-code
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git config --global user.username
- Lio-code
- wilder@wilder-ThinkPad-T440p:~/hello-world$ VERIFY
- VERIFY: command not found
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git config --global user.username
- Lio-code
- wilder@wilder-ThinkPad-T440p:~/hello-world$ VERIFY
- VERIFY: command not found
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git config --global user.username
- Lio-code
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git remote add origin https://github.com/Lio-code/hello-world.git
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git push origin master
- Username for 'https://github.com': Lio-code
- Password for 'https://Lio-code@github.com':
- remote: Invalid username or password.
- fatal: Authentication failed for 'https://github.com/Lio-code/hello-world.git/'
- wilder@wilder-ThinkPad-T440p:~/hello-world$ git push origin master
- Username for 'https://github.com': Lio-code
- Password for 'https://Lio-code@github.com':
- Counting objects: 3, done.
- Writing objects: 100% (3/3), 233 bytes | 233.00 KiB/s, done.
- Total 3 (delta 0), reused 0 (delta 0)
- To https://github.com/Lio-code/hello-world.git
- * [new branch] master -> master
- wilder@wilder-ThinkPad-T440p:~/hello-world$ cd ..
- wilder@wilder-ThinkPad-T440p:~$ git clone https://github.com/Lio-code/patchworkCloning into 'patchwork'...
- remote: Enumerating objects: 37, done.
- remote: Counting objects: 100% (37/37), done.
- remote: Compressing objects: 100% (29/29), done.
- remote: Total 364586 (delta 20), reused 12 (delta 6), pack-reused 364549
- Receiving objects: 100% (364586/364586), 136.43 MiB | 4.99 MiB/s, done.
- Resolving deltas: 100% (172134/172134), done.
- wilder@wilder-ThinkPad-T440p:~$ cd patchwork
- wilder@wilder-ThinkPad-T440p:~/patchwork$ git remote -v
- origin https://github.com/Lio-code/patchwork (fetch)
- origin https://github.com/Lio-code/patchwork (push)
- wilder@wilder-ThinkPad-T440p:~/patchwork$ git remote add upstream https://github.com/jlord/patchwork.git
- wilder@wilder-ThinkPad-T440p:~/patchwork$ git remote -v
- origin https://github.com/Lio-code/patchwork (fetch)
- origin https://github.com/Lio-code/patchwork (push)
- upstream https://github.com/jlord/patchwork.git (fetch)
- upstream https://github.com/jlord/patchwork.git (push)
- wilder@wilder-ThinkPad-T440p:~/patchwork$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement