established local repository Master branch,
4. Open the Command Line window cmd in Windows, and go to the directory where the current project is located, for example: CD "D:\projects\TestProject" (Assuming the current project name is TestProject);
Note: Before you do this, you must set the PATH environment variable so that the git executable can access it,
such as: path=%path%;D: \git\
\administrator\.ssh" There is the file id_rsa.pub we need. Then open Oschina add SSH Public key place, click here, if you have already landed. Then enter a title, copy the contents of the id_rsa.pub you just generated to the public key, then click OK, so the preparation is done.Then we can communicate the local and remote positions via SSH. Add a
@github.com:jquery/jquery.git (push)
The above command indicates that there is currently only one remote host, called Origin, and its URL.
When cloning a version library, the remote host used is automatically named Origin by Git. If you want to use a different host name, you need to specify it with the-o option of the git
remote hosts.
$ git remoteorigin
With the-v option, you can see the URL of the remote host.
-vorigin [emailprotected].com:jquery/jquery.git (fetch)origin [emailprotected].com:jquery/jquery.git (push)
The above command indicates that there is currently only one remote host, called Origin, a
remote hosts.
$ git remoteorigin
With the-v option, you can see the URL of the remote host.
-vorigin [emailprotected].com:jquery/jquery.git (fetch)origin [emailprotected].com:jquery/jquery.git (push)
The above command indicates that there is currently only one remote host, called Origin, a
Git learning path (5)-synchronization to remote repository and collaboration among multiple people, git pathToo many rows too many rowsIntroduction
We have written the file and added it to the version library, but this is not done yet. We also need to synchronize it to the remote repository of GitHub. Here we will ta
remotecommand is used to manage host names.With no options, the git remote command lists all remote hosts.
$ git remoteorigin
Use the -v option to see the URL of the remote host.
-vorigin [emailprotected].com:jquery/jquery.git (fetch)origin [emailpro
[emailprotected].com:jquery/jquery.git (fetch)origin [emailprotected].com:jquery/jquery.git (push)
The above command indicates that there is currently only one remote host, called Origin, and its URL.When cloning a repository, the remote host used is automatically named by Git origin . If you want to use a different host name, you need to specify it with
names.With no options, the git remote command lists all remote hosts.
$ git remoteorigin
With the-v option, you can see the URL of the remote host.
-vorigin [emailprotected].com:jquery/jquery.git (fetch)origin [emailprotected].com:jquery/jquery.git (
remote hosts.
$ git remoteorigin
Use the -v option to see the URL of the remote host.
-vorigin [emailprotected].com:jquery/jquery.git (fetch)origin [emailprotected].com:jquery/jquery.git (push)
The above command indicates that there is currently only one remote host, called Origin, and its
, and then first use the command git status to view the status, as shown in the figure shows that the modified content is still working to not add to the staging area:
2. Execute the git add command at the command line to add the modified file to staging area as shown:
Iv.
GitHub Upload Project Method:Install Git on your computerGit Bash HereThe general process for creating and correlating local git repositories and remote repositories is:1. Initialize this local folder as a Git manageable repositoryGit initNote: Git will automatically create
git clone:# Clone to # When cloning a repository, the remote host used is automatically named as Origin by Git. If you want to use a different hostname, you need to use the git clone command ---o jQuery https://github.com/jquery/jquery.git$ git Remotejquerygit clone will onl
To collaborate in a distributed development process you'll need to push code to remotely accessible repositories.
This is somewhat of a follow-up to the previous article setting up a new rails app with git.
It's good to know how this stuff works, but this is definitely the hard way. For no fuss git repository setup (especially if you want to collaborate with others) Check out GitHub.For the impatient
Set up
Git merges two remote libraries and git merges
Environment:
1. The local disk is empty and there is nothing
2. There are two different projects (projects) on the remote git
3. merge the two projects locally
Commencement:
1. clone the code of the first project from the
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.