清理了operation文件中的无效乱码,留下了重要可用的命令。
This commit is contained in:
parent
76dcd327b0
commit
d251804758
135
operation.log
135
operation.log
@ -1,12 +1,3 @@
|
||||
Microsoft Windows [版本 10.0.26100.2314]
|
||||
(c) Microsoft Corporation。保留所有权利。
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>touch README.md
|
||||
'touch' 不是内部或外部命令,也不是可运行的程序
|
||||
或批处理文件。
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>echo "test" > README.md
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>dir
|
||||
驱动器 C 中的卷没有标签。
|
||||
卷的序列号是 0E23-B25F
|
||||
@ -27,15 +18,7 @@ Initialized empty Git repository in C:/Users/Lei Zhao/Desktop/demo/.git/
|
||||
C:\Users\Lei Zhao\Desktop\demo>git checkout -b main
|
||||
Switched to a new branch 'main'
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git .
|
||||
git: '.' is not a git command. See 'git --help'.
|
||||
|
||||
The most similar commands are
|
||||
am
|
||||
gc
|
||||
mv
|
||||
p4
|
||||
rm
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git add .
|
||||
|
||||
@ -48,11 +31,7 @@ C:\Users\Lei Zhao\Desktop\demo>git commit -m "my first demo about git on my home
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git remote add origin https://demo.gitea.com/lzdev/Demo.git
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git push -u origin main
|
||||
fatal: unable to access 'https://demo.gitea.com/lzdev/Demo.git/': TLS connect error: error:00000000:lib(0)::reason(0)
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git remote add origin https://demo.gitea.com/lzdev/Demo.git
|
||||
error: remote origin already exists.
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git push -u origin main
|
||||
Enumerating objects: 5, done.
|
||||
@ -74,6 +53,8 @@ The most similar commands are
|
||||
bisect
|
||||
rev-list
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git --state
|
||||
unknown option: --state
|
||||
usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
|
||||
@ -83,8 +64,10 @@ usage: git [-v | --version] [-h | --help] [-C <path>] [-c <name>=<value>]
|
||||
[--work-tree=<path>] [--namespace=<name>] [--config-env=<name>=<envvar>]
|
||||
<command> [<args>]
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git config --gloabal user.name "lzdev"
|
||||
error: unknown option `gloabal'
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git config
|
||||
|
||||
usage: git config list [<file-option>] [<display-option>] [--includes]
|
||||
or: git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>
|
||||
or: git config set [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>
|
||||
@ -145,66 +128,9 @@ Other
|
||||
--[no-]includes respect include directives on lookup
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git config --gloabal user.name "lzdev"
|
||||
error: unknown option `gloabal'
|
||||
usage: git config list [<file-option>] [<display-option>] [--includes]
|
||||
or: git config get [<file-option>] [<display-option>] [--includes] [--all] [--regexp] [--value=<value>] [--fixed-value] [--default=<default>] <name>
|
||||
or: git config set [<file-option>] [--type=<type>] [--all] [--value=<value>] [--fixed-value] <name> <value>
|
||||
or: git config unset [<file-option>] [--all] [--value=<value>] [--fixed-value] <name>
|
||||
or: git config rename-section [<file-option>] <old-name> <new-name>
|
||||
or: git config remove-section [<file-option>] <name>
|
||||
or: git config edit [<file-option>]
|
||||
or: git config [<file-option>] --get-colorbool <name> [<stdout-is-tty>]
|
||||
|
||||
Config file location
|
||||
--[no-]global use global config file
|
||||
--[no-]system use system config file
|
||||
--[no-]local use repository config file
|
||||
--[no-]worktree use per-worktree config file
|
||||
-f, --[no-]file <file>
|
||||
use given config file
|
||||
--[no-]blob <blob-id> read config from given blob object
|
||||
|
||||
Action
|
||||
--get get value: name [<value-pattern>]
|
||||
--get-all get all values: key [<value-pattern>]
|
||||
--get-regexp get values for regexp: name-regex [<value-pattern>]
|
||||
--get-urlmatch get value specific for the URL: section[.var] URL
|
||||
--replace-all replace all matching variables: name value [<value-pattern>]
|
||||
--add add a new variable: name value
|
||||
--unset remove a variable: name [<value-pattern>]
|
||||
--unset-all remove all matches: name [<value-pattern>]
|
||||
--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>]
|
||||
|
||||
Display options
|
||||
-z, --[no-]null terminate values with NUL byte
|
||||
--[no-]name-only show variable names only
|
||||
--[no-]show-origin show origin of config (file, standard input, blob, command line)
|
||||
--[no-]show-scope show scope of config (worktree, local, global, system, command)
|
||||
--[no-]show-names show config keys in addition to their values
|
||||
|
||||
Type
|
||||
-t, --[no-]type <type>
|
||||
value is given this type
|
||||
--bool value is "true" or "false"
|
||||
--int value is decimal number
|
||||
--bool-or-int value is --bool or --int
|
||||
--bool-or-str value is --bool or string
|
||||
--path value is a path (file or directory name)
|
||||
--expiry-date value is an expiry date
|
||||
|
||||
Other
|
||||
--[no-]default <value>
|
||||
with --get, use default value when missing entry
|
||||
--[no-]comment <value>
|
||||
human-readable comment string (# will be prepended as needed)
|
||||
--[no-]fixed-value use string equality when comparing values to value pattern
|
||||
--[no-]includes respect include directives on lookup
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git config --global user.name "lzdev"
|
||||
@ -222,6 +148,9 @@ Changes not staged for commit:
|
||||
|
||||
no changes added to commit (use "git add" and/or "git commit -a")
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git add README.md
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git commit -m "a first change about README.md"
|
||||
@ -241,6 +170,10 @@ git: 'stauts' is not a git command. See 'git --help'.
|
||||
The most similar command is
|
||||
status
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git log
|
||||
commit 4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main)
|
||||
Author: lzdev <ciozhao@126.com>
|
||||
@ -254,17 +187,24 @@ Date: Fri Nov 29 12:46:21 2024 +0800
|
||||
|
||||
my first demo about git on my home pc
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git log --pretty=oneline
|
||||
4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main) a first change about README.md
|
||||
5ae0a0130741c9015dae69f05c95e5380dd19f17 (origin/main) my first demo about git on my home pc
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git log --graph --pretty=oneline --abbrev-commit
|
||||
* 4c393c2 (HEAD -> main) a first change about README.md
|
||||
* 5ae0a01 (origin/main) my first demo about git on my home pc
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>history
|
||||
'history' 不是内部或外部命令,也不是可运行的程序
|
||||
或批处理文件。
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git show
|
||||
commit 4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main)
|
||||
@ -289,9 +229,10 @@ index f73693a..4edd251 100644
|
||||
++ 准备用来记录日记也不错
|
||||
\ No newline at end of file
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git push -u origin "master"
|
||||
error: src refspec master does not match any
|
||||
error: failed to push some refs to 'https://demo.gitea.com/lzdev/Demo.git'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git push -u origin main
|
||||
Enumerating objects: 5, done.
|
||||
@ -308,6 +249,9 @@ branch 'main' set up to track 'origin/main'.
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git add .
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git show
|
||||
commit 4c393c2fb05ea7e2fd3b01844d1ceba2ab97fc66 (HEAD -> main, origin/main)
|
||||
Author: lzdev <ciozhao@126.com>
|
||||
@ -335,6 +279,10 @@ C:\Users\Lei Zhao\Desktop\demo>git log --oneline
|
||||
4c393c2 (HEAD -> main, origin/main) a first change about README.md
|
||||
5ae0a01 my first demo about git on my home pc
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git status
|
||||
On branch main
|
||||
Your branch is up to date with 'origin/main'.
|
||||
@ -345,14 +293,25 @@ Changes to be committed:
|
||||
deleted: info.txt
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git rm info.txt
|
||||
fatal: pathspec 'info.txt' did not match any files
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git commit -m "我删除了一个叫info.txt的文件"
|
||||
[main da56802] 我删除了一个叫info.txt的文件
|
||||
2 files changed, 4 insertions(+), 3 deletions(-)
|
||||
delete mode 100644 info.txt
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>git push
|
||||
warning: redirecting to https://demo.gitea.com/lzdev/My_diary/
|
||||
Enumerating objects: 5, done.
|
||||
@ -366,6 +325,8 @@ remote: Processed 1 references in total
|
||||
To https://demo.gitea.com/lzdev/Demo.git
|
||||
4c393c2..da56802 main -> main
|
||||
|
||||
C:\Users\Lei Zhao\Desktop\demo>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user