In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
linux/cmd command line syntax rules, syntax format syntax explanation: : Required parameters
{ }: Required parameter, used internally
[ ]: Optional parameters
( ): Indicates the default value of the parameter, only used in { }
|: Used for segmentation
...: Any number of parameters
&&: Connect multiple commands
--: followed by parameter name
. : Current
Take git as an example: Here is the prompt generated by the git command C:\Users\Administrator>git
usage: git [--version] [--help] [-C ] [-c =]
[--exec-path[=]] [--html-path] [--man-path] [--info-path]
[-p | --paginate | -P | --no-pager] [--no-replace-objects] [--bare]
[--git-dir=] [--work-tree=] [--namespace=]
[]
These are common Git commands used in various situations:
↑↑↑:
1. [ ] curly brackets represent optional parameters [--version] [--help], which means you can type git directly,
Federal Reserve Resolution www.gendan5.com/decision/usd.html You can also enter the contents of git + [ ], such as: git --version
2. | stands for "or," meaning to select a parameter [-p| --paginate | -P |--no-pager], e.g. git -p, git -P,git --paginate
3. Represents required parameter [-C ], such as git -C'./ start a working area (see also: git help tutorial)
clone Clone a repository into a new directory
init Create an empty Git repository or reinitialize an existing one
↑↑↑: Warehouse operations
git clone "http://...... "; copy remote repository to local working copy
git clone "http://...... "; Initialize a local git repository clone mode with username and password:
git clone http://uname:pwd@remoteAddress
git clone http://uname:pwd@git@213245453.git
work on the current change (see also: git help everyday)
add Add file contents to the index
mv Move or rename a file, a directory, or a symlink
reset Reset current HEAD to the specified state
rm Remove files from the working tree and from the index
↑↑↑: Local warehouse file version operation
1.git add . git add ./ git add: add files (folders) to the repository
2. git mv: move or rename
3. git reset HEAD: working copy version rollback
4. git rm: examine the history and state (see also: git help revisions)
bisect Use binary search to find the commit that introduced a bug
grep Print lines matching a pattern
log Show commit logs
show Show various types of objects
status Show the working tree status
Git grow, mark and tweak your common history
branch List, create, or delete branches
checkout Switch branches or restore working tree files
commit Record changes to the repository
diff Show changes between commits, commit and working tree, etc
merge Join two or more development histories together
rebase Reapply commits on top of another base tip
tag Create, list, delete or verify a tag object signed with GPG
↑↑↑: Local Job Copy Control
1. git commit -am "commit msg": commit all changes to the current directory
2. git checkout branchname [branchname-branch name] Switch branches
3. git diff: View changes to the current directory collaborate (see also: git help workflows)
fetch Download objects and refs from another repository
pull Fetch from and integrate with another repository or a local branch
push Update remote refs along with associated objects
'git help -a' and 'git help -g' list available subcommands and some
concept guides. See 'git help ' or 'git help '
to read about a specific subcommand or concept.
↑↑↑: Interaction between local warehouse and remote warehouse
1. git fetch: pull update without merge
2. git pull: Pull all updates from the current directory and merge local copies
3. git push: push all updates in the current directory
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.