Here is the first introduction to using command-line.1, download git installer, address; http://git-scm.com/downloads2, open after download, double-click. PKG Installation3, open the terminal, use the git--version command to view the installation version, there is a successful installation/* The following 4.5 commands are automatically included if they have already been created using BitBucket */4, create a global user namegit config--global user.name
the port and host
Shell> netstat-lnpt | grep 3690Tcp 0 0 0.0.0.0: 3690 0.0.0.0: * LISTEN 1883/svnserve
6. Authorization test (1)
Shell> svn checkout -- no-auth-cache -- username wang -- password wang_pwd svn: // 192.168.12.128/myrepos/home/wang/myrepos # SuccessObtain version 0.
Shell> svn co -- no-auth-cache -- username guaishou -- password guaishou_pwd svn: // 192.168.12.128/myrepos/home/guaishou/myrepos # failure (co = checkout)Svn: authentication failed
# It can be seen from the above that
Here are two ways of doing it;One, using Git command-lineSecond, the use of GUI tools Sourcetree, the function is very powerful, very convenientBefore installing, git, like SVN, needs to create a server that can create its own version Management Server. For individuals and small teams, it may be more appropriate to use a managed server,Common to have GitHub and bitbucket. Here I introduce the next bitbucket
1. Open Sourcetree, enter settings-account;2. Choose Add Account, host select BitBucket (or github), connect account, login to existing BitBucket account (or GitHub account), save3. After successful connection, on the second step of the page will show your account name, SSH key under a "Copy to Clipboard" button, click to copy SSH key;4. Enter the BitBucket offic
/simplegit.gitCloning into 'simplegit'...remote: Counting objects: 13, done.remote: Total 13 (delta 0), reused 0 (delta 0), pack-reused 13Receiving objects: 100% (13/13), done.Resolving deltas: 100% (2/2), done.Checking connectivity... done.
After cloning, a simplegit directory is generated in the current directory:
$ cd simplegit/$ lsREADME Rakefile libThe above operations will copy all records of the project.
$ ls -a. .. .git README
an elegant way to manage project code. Compared with Subversion, Git is more cost-effective and easier to install for new users. Creating a new version branch is very easy, and you don't have to worry about it, it will destroy your hard work.
I strongly recommend that you use Github because it has been around for years. Its free tools are good, including user wiki, Q A support, push requests, and free web hosting. There are many developers on the Internet. Using Github for code management is a
background:Recently used BitBucket as the remote repository Management code, because each time the push code needs to enter the account password, they provide the SSH protocol so that the push code does not need to enter the account password.How to use:A machine only need to generate a private key in the ~/.SSH to a public key, and then upload your public key to BitBucket, if someone else wants to upload th
Git is a great but complex source code management system. It supports complex tasks, but is often considered too complex and not suitable for simple daily work. Let's be honest: Git is complicated and we should not pretend it is not. But I will still try to teach you how to work with (my) Basic Git and remote code libraries within 15 minutes. I will demonstrate the following steps, which usually help me build projects on one or more machines.
Create a remote empty code library (on
between Git and HG as its distributed version control system (initially only to support Hg). Since then, git warehouses have grown and many Hg warehouses have migrated to the Git repository. Searching for git on Google code returns 5m results, while search HG returns 16m results (Google added an open support for Hg in April 2009; So, Hg has 2.5 years of history, and Git is only six months on Google code).
Atlassian bought BitBucket last year, and
belong to the guestgp workgroup belong to the guest category: the guestgroup guestgp // guestgp workgroup must be established first.
Loginfails
Set the maximum number of Logon failures allowed for users. The format is as follows:
Loginfails
For example:
loginfails 3
Readme
This parameter is used to set the following format when a user logs on to FTP or switches to a directory for the first time:
Yum install-y autoconfThis does not affect the use, if you want to remove it, you can set the timezone that parameter in the php.iniExample:You want to compile an extension module, if it comes with the source code package ext has this directory, it can be directly in the directory to compile it, if not it will need to download the official website, here are examples of a ZIP module experiment operation as follows:[Email protected] ~]# cd/usr/local/src/php-7.1.6[[email protected] php-7.1.6]# lsA
Guestgroup
Use to specify which workgroup belongs to the guest category, and the following example will specify users who belong to the GUESTGP workgroup, all of which belong to the guest category: Guestgroup GUESTGP//GUESTGP Workgroup is established first.
Loginfails
Set the number of times that the user is allowed to log in at most failed, in the following format:
Loginfails
For example:
Loginfails 3
Readme
installed. If installation is not installed by Yum: Yum install git
2, create git library user, under the root account, use the following command
Create User: AddUser git
Modify user password: passwd git
3. Create user for Git tool
git config--global user.email "Enter registered mailbox" git config--global user.name "Enter registered user"
4. Git initialization
Create a repository for git and select a catalog for inventory:/opt/cwqsologit
Execute instructions in this directory: Git init
The l
-- global core. Editor Vim # differential analysis tool $ git config -- Global merge. Tool vimdiff.
Because each commit of git records committer information, after completing the above configuration, run the CD command to enter any file directory, and then use the GIT init name to initialize a git version library.
$ CD/D/ohmygod $ git init
In this way, any changes under the ohmygod directory are managed by the GIT version library. Create a ReadMe
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.