The use of Delphi tstringlistTstrings is an abstract class that, in actual development, is the most applied except for the basic type.Tstringlist Common Methods and properties:VarList:tstringlist;I:integer;BeginList: = tstringlist.create;List.add (' Strings1 '); AddList.add (' Strings2 ');List.exchange (0,1); ReplacementList.insert (0, ' Strings3 '); InsertI: = List.indexof (' Strings1 '); {The first occurrence of a position}List.sort; Sortlist.sorted: = True; {Specify sort}List.count; TotalList
① Configuring the console login password The first way to configure authentication (AAA)[Server] AAA (authentication mode)[SERVER-AAA] local-user admin1234 password irreversible-cipher (irreversible password) [email protected] (local user admin1234 password)[SERVER-AAA] Local-user admin1234 Privilege level 15 (local u
version 2
III >. Because the function of the program is to delete the specified primary key, subkey, and key values, this requires that we first set the location and name of the values in the registry. Specifically as follows:The following subkey and key values are established in the "SOFTWARE" subkey below the HKEY_LOCAL_MACHINE PRIMARY key:Create a "AAA" subkey under the "SOFTWARE" subkey. Under AAA subk
Command operations for Linux1. Daily Operation Command* * View your current working directoryPwd* * Time to view current systemDate* * See who is online (who logged in to the server)Who view current onlineLast view recent log in history2. File System operation**LS/view child nodes (folders and files) information in the root directoryLs-al-a is show hidden file-L is displayed in a more detailed list form* * Switch DirectoriesCd/home* * Create Foldermkdir AAA
branches, otherwise the code how to manage. 3. Create a new branch on top of some basics Git checkout–b D96 Create a branch and switch to the new branch at the same time. 4. Sync to the server, associate the new branch with the parent branch and make it easy for colleagues to enter together (he is also the same, download the warehouse, just switch branches, not switch h28, and D96, and do not need to create a new branch) Git push Origin D96 View Main Branch Associations git branch–a//view Remo
to the GitHub repository. 3 git clone [email protected]:michaelliao/gitskills.git clone from remote library 4 git Add * * add xx file to Staging area. 5 git commit–m "* *" --git Cloning Branch1 git clone xxx.git //simplest direct command 2 git clone xxx.git "Specify directory"//clone to the specified directory 3 git clone-b [new_branch_name] xxx.git//cl One creates a new branch instead of the default Origin HEAD (master)--clone Remote Branch the git clone command defaults to on
be a good solution to the above problem. Plus --rebase The argument is that if the submission line graph has a fork, Git will rebase the policy instead of the default merge policy. What are the benefits of using the REBASE strategy? It's a man git-merge good idea to take a look at the diagram.Let's say that the commit line graph is this way before the pull is executed: A---B---C remotes/origin/master / D---E-
The command is as follows:1: Locally created branch dev[Email protected]/d/home/myself/symfony (master) $ git branch dev2: The following is the submission of the local branch to the remote repository[Email protected]/d/home/myself/symfony (master) $ Git push origin devtotal 0 (Delta 0), reused 0 (Delta 0) to [email prote Cted]:turingtd/symfony.git * [New branch] Dev-Dev3: Check out a few branches of the remote repository[Email protected]/d/home/myself/symfony (master) $ git branch-a dev* M
The git clone command usesCategory: Project construction 2013-06-26 15:43 38660 people read reviews (2) favorite reports Gitclonegit clone command parameters:Usage:git clone [Options] [--] There are many parameters, but there are several common ones:1. The simplest and most straightforward commandgit clone xxx.git2. If you want to clone to the specified directorygit clone xxx.git "Specify directory"3. Clone creates a new branch instead of the default Origin HEAD (master)Git clone-b [new_bran
/master points to an remote branch (from that branch our clone data to local), But you cannot change its data locally.At the same time, Git builds a local master branch of your own, which points to a copy you've just uploaded from remote to your local server. As you continue to change the file, git add, git commit,master point will automatically move, you can also move the master point through the merge (Fast forward).$git branch-a (to show all the branches git knows about)* MasterRemotes/origin
want to merge this content into the current branch, git merge origin/serverfix you can run it . If you want a copy of your own serverfix to develop, you can differentiate a new branch on the basis of a remote branch:$ git checkout -b serverfix origin/serverfixBranch serverfix set up to track remote branch refs/remotes/origin/serverfix.Switched to a new branch "serverfix"This switches to the new serverfix local branch, which is consistent with the rem
Aliases are used to help you define your own git commands. For example, you can definegit aTo rungit add --all.
To add an alias, open~/.gitconfigFile and add the following content:
[alias] co = checkout cm = commit p = push # Show verbose output about tags, branches or remotes tags = tag -l branches = branch -a remotes = remote -v
... Or type:
$ git config --global alias.new_alias git_function
For ex
1. Find a PC with 2 Ethernet cards
2. Install FreeBSD 7.3 on this PC, and set network connecting to Internet.3. After installed, run cmd:
1. ntpdate clock.stdtime.gov.tw
4.Copy packages of IPv6 Test Tools v6eval-3.3.1.tar.gz v6eval-remotes-3.0 and self_test_5-0-0.tgz.tar to FreeBSD. 5.Install tahi package Commands: 1. tar zxvf v6eval-3.3.1.tar.gz 2. cd v6eval-3.3.1 3. make 4. make install 5. tar zxvf self_test_5-0-0.tgz.tar 6. tar -zxvf v6eval
).
. Git/refs/heads/master
. Git/refs/remotes/origin/master
// No commit is added.Changes to be committed:(Use "git reset HEAD ..." To unstage)
New file: yyy
// The original file is modified without addingChanges not staged for commit:(Use "git add ..." To update what will be committed)(Use "git checkout -..." To discard changes in working directory)
Modified: test
// The new file has not been addedUntracked files:(Use "git add ..." To include in wha
The Master branch in Gitlab is set to protected, and for developer members it is necessary to pull a separate branch for development until the stability is later merge into the Master branch. But how do we develop locally based on the developer branch, and how do we pull the developer branch to the local, the push code to the developer branch? Create developer Branch
Note here that if your remote branch is deleted, you will still be able to execute Git branch-a, and this time you can execute gi
Gitlab The Master branch is set to protected, the members of the developer identity need to pull a branch separately to develop it, until the stability is later merge into the Master branch, But at this time how do we develop locally according to the developer branch, and how pull developer branches locally, in the push code to the developer branch. Create developer Branch
Note here that if you delete the remote branch, you do git branch-a will still exist, this time you can execute git fetch-p
Native usageAPIs for direct use_.rejectRemoves an element based on the condition.var foo = [ {id: 0, name: "aaa", age: 33}, {id: 1, name: "bbb", age: 25}]var bar = _.reject(foo, [‘id‘, 0])//bar = [{id: 1, name: "bbb", age: 25}]_.pickFilters the value in the first parameter and returns the array based on the key of the second parametervar foo = {id: 0, name: "aaa", age: 33}var bar = _.pick(foo, [‘name‘, ‘
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.