Add Comment
$ git commit -m "注释内容"
Establish an association with a remote github repository
The remote warehouse address is the new project address that you just added on GitHub https://github.com/user name/project name. Git$ git remote add origin https://github.com/用户名/项目名.git
Syn
-add ~/.ssh/id_test_rsaRe-enter SSH-T [email protected] If the prompt is successful, we will continue, if not successful, you will Google the error of the newspaper.When you're successfully, let's set up your github login and login mailbox in git config to execute the following two commands:git config--global user.name "Your name"git config--global user.email "[email protected]"Now we can upload the code!!P
Premise: You follow the GitHub website steps have SSH configured, the proposal has a certain basis, this major solution when you first fork a other people's library, then you need to synchronize the code down in the local problem,
The following four steps are required:
1. Git clone git@github.com:abc/def.git clone one of your remote libraries to
Git is a good thing, but for beginners, this tool is not good to use, because it involves a lot of things, and these things novice for a time is incomprehensible. Unfortunately, I am a novice, so, here does not say too much about the principle of git, what kind of stage should do what kind of things, first from familiar with the common use of tools to start.
To facilitate the use of
The original link please indicate:http://blog.csdn.net/u011974987/article/details/52913925This article is from: "Stromxu's Blog"Welcome to visit my blog, add a bit of popularity ~~xuhao's blog phenomenon Description:
I have changed the code on the existing branch, after using Git to submit the local code, Sourcetree above no record, I wondered, I originally thoug
file would have their original line endings in your working directory.WARNING:LF is replaced by CRLF in Node_modules/accepts/license.The file would have their original line endings in your working directory.[Email protected]/d/documents/hbuilderprojects/test (master)$ git statusOn Branch MasterYour Branch is based on ' Origin/master ', and the upstream is gone.(
How to generate a Public Key (VIA) Workflow
Install and set git
Download the latest version of Git
http://git-scm.com/downloads
When you install git, You need to perform simple configuration to open the terminal:User Name
Step 1: Tell git your name. This name will appear in
] If the prompt is successful, we will continue, if not successful, you will Google the error of the newspaper.When you're successfully, let's set up your github login and login mailbox in git config to execute the following two commands:git config--global user.name "Your name"git config--global user.email "[email protected]"Now we can upload the code!!Pull your project code into this folder, execute the co
read from remote repository.4. Enter $ git remote add [email protected]: djqiang/gitdemo again. git uses Git to create a project locally $ makdir ~ /Hello-world // create a project hello-World $ Cd ~ /Hello-world // open this project $
1. delete a local branch:Git branch-D branchname2. delete a remote Branch:// Method 1: Push the local branch to a remote location (the remote branch to be deleted has a ing locally) git
, git associates the local master branch with the remote Master Branch, and we no longer need to add the-u parameter to the push operation.If something like the following appears:Username for ' https://github.com ': shiren1118Password for ' https://[email protected] ':To Https://github.com/shiren1118/iOS_code_agile.git
Recently, a project needs to use a server as a dedicated deployment server, encountered some problems in the implementation process, as follows:1. The SSH default port of the server and the SSH port of the project Git repository are inconsistent 2. Deployment requires SSH key provided by the project and cannot use the default SSH key of the server itselfThese problems have been solved successfully, here special record, prevent forgetting.
For th
1. Background
Recently, I plan to use git to manage local projects. There is a lot of information on the Internet, but this is complicated.
2. Use git
(1) initialization
Create a git folder, cd in, and create a code repository
1. Create a local branchGit branch name, for example: git branch 2.0.1.20120806 Note: 2.0.1.20120806 is the branch name, which can be defined at will.
2. Switch the local branchGit c
Recently in the play GitHub this base friend platform, here to do a summary, easy to consult later, you can also give users a reference.One: Register your github account and download git.Second: Create a new warehouse on GitHub, point + and click New Repository, give your warehouse a name, mine is test. Three: Install git, I install the Win64 version, directly decompression installation is good. Fi
The specific method is as followsGit pull Origin branch // error occurred git stash // Restore git stash ClearDevelopers often encounter this situation: It took a few days to do a new function, has changed almost more than 10 files, suddenly a bug needs to be resolved urgently, and then to a build test group. It's often time-consuming and error-prone to rely on
user.email myaddress@gmail.com
4. Create a local repository
Assume that there is a folder in your home directory that stores the CD ~ /Code
Then you only need to run it in the Code directory.
git initgit add .git commit -m "first commit"
Git init initializes a
Previously on the machine using git to download the Linux git version of the source code, because in the process of reading the source code, the local files will inevitably be modified, so that the local file and the file version on the server is inconsistent, I want to do is to use the version of the server to forcibl
Abstract: Because No-fast-forward push is rejected during git push, how to resolve the problem of Git push failure. There are three methods that will form the merge form of the commit history, the linear form of the commit history, covering the original commit history.
This article source: Three modes of Git push
Address: http://blog.csdn.net/trochiluses/article
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. Open Terminal: Enter the CD space and then dir
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.