How Git uses the Generate SSH personal public key to access the Git repository method ( here, for example, the coding platform ):1. Get the SSH protocol addressIn the Project code page click SSH Switch to SSH protocol, get access address, please use this address to visit your code warehouse, such as:2. Generating the public keyMac/linux Open the command-line
After building the GIT server locally, push the new code on the development machine and discover the GIT hint:Insufficient permission for adding a object to repository database. git/objectsThis occurs because there is no write permission on the directory where the repository
and email address." Zuxingyu " Bogon:hello Zuxingyu " [email protected] "Because Git is a distributed version control system, every machine must be tell: your name and email address. You may be worried, what if someone pretends to be someone else? This does not have to worry, first of all we believe that we are good and ignorant of the masses, and secondly, there is a fake there are ways to check.Note the --global parameter of the
Example of Git repository server SSH Authentication
Git provides three solutions for user management and management:
If everyone in the team needs to have the write permission on the repository and cannot create an account for everyone on the server, providing SSH connection
Today finally learned git, although not fully understand the git and svn differences, but also have mastered some of the basic git operation, read several tutorials, and finally will!!!Previously thought Git is GitHub, really too naive too simple ....Step into the chase:The first step is to
website called GitHub, from the name can be seen, this site is to provide git warehouse hosting services, so as long as you register a github account, you can get free git Remote Storage.Please register yourself before continuing to read the following GitHub account number. There's a lot of information on how to sign up for GitHub online, so here's not the introduction. Because the transfer between your lo
The premise of this summary is that a git server has been built and connected through the SSH protocol. For more information, see RHEL git server setup, WindowsXP git server setup, and git server usage basics. This article uses the GIT-2012-01-11 under the rhel5.5 system, th
Convenient for future reference. Thank the original blogger for sharing.
When we develop a project on more than one computer, we need to constantly modify the submission and update the latest remote code on another computer, see how to get updates from the remote code warehouse to the local, summed up the article on the Internet, using the following way is relatively simple.
Viewing remote branches
Use the following command to view the remote repository
Create a warehouse locally and then manage it. Submit to the local repository (no network required), submit to the remote repository (requires network) in the same way that SVN is cloned, the entire repository is assigned, and SVN is just a copy of the code. 1. The computer creates a "local warehouse" empty folder 2. O
name can be seen, this site is to provide git warehouse hosting services, so as long as you register a github account, you can get free git Remote Storage.Please register your GitHub account before continuing to read the following. Because the transfer between your local git repository and the GitHub
in the 70 's is vivid enough so that we can think of Git as a recording job.Create a new Git repositoryFirst, we need to buy some tapes for our virtual recorders. In Git's words, these tapes are warehouses, which are the basis for all the work done, meaning that this is where git files are stored (i.e. git workspaces)
1. Create the corresponding project in the remote Git repository;2. Generate the local SSH key using the command line;3. Paste the public key into the location of the remote repository;4.SourceTree set the address of the remote repository;5. Push the local branch to the remo
in the 70 's is vivid enough so that we can think of Git as a recording job.Create a new Git repositoryFirst, we need to buy some tapes for our virtual recorders. In Git's words, these tapes are warehouses, which are the basis for all the work done, meaning that this is where git files are stored (i.e. git workspaces)
Build a Git server Repository
Git can be used to easily build a Git server repository. The principle is to log on via ssh. The advantage of this method is that it is simple.Procedure:
#1. Install git:
sudo apt-get install git2.
There is a magic site called GitHub, hehe, from the name can be seen, this site is to provide a git warehouse hosting services, so as long as the registration of a GitHub account, you can get free git Remote Storage.Because the transfer between the local git repository and the GitHub
install gitOf course, most of the system is estimated to be windows, which requires us to download a git for window on the Internet, can be downloaded to the following Web site:http://msysgit.github.io/Click the version number, not download, do not know why not open!Click to enter the page, download the following files can beOr to the author's cloud disk direct download can also:Git-1.9.5-preview20150319.exeThen the next fool will be able to do it ~N
blog.
3. view the remote database. Run the GIT remote-V command to view the list of remote databases that have been added. Run the GIT remote show remote-name command to view the details of the remote database named remote-name.
The information includes the URL address for obtaining and pushing the remote database, the branch where the head is located, and the branch list owned by the remote database.
I
Git is hot. There are three reasons:
It is the work of the Great God Linus Torvalds, which naturally possesses the temperament and quality of God's second generation;
Facilitates the development of productivity, GIT's distributed versioning concept is not the first, but is well suited to the collaborative approach of the open source community (there is no master-slave relationship)
GitHub
GitHub is well known as the Code World of
warehouse is not guaranteed, even if you do, it is possible to put these unrelated subdirectories in different repository,repository is independent of each other, it makes sense to think carefully.
My usage scenario:
1, want to use a repository tree to save each other unrelated, no dependent operations sub-project, and each sub-project code is very small, each
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.