The premise of this summary is that the GIT server has been built and connected through the SSH protocol, see the document "Build git server under Windows XP" "Rhel Server" "Git server use base." This paper uses the git-2012-01-11 of the RHEL5.5 system, the user Root/password,git
:
[root@li96-10 blog.git]# cd ..[root@li96-10 repository]# mkdir test.git[root@li96-10 repository]# cd test.git/[root@li96-10 test.git]# echo "some content" >> file[root@li96-10 test.git]# git add file fatal: Not a git repository (or any of the parent directories): .git[root@li96-10 test.git]#
local repository with it, and then push the contents of the local repository to the GitHub repository.Now, let's run the command under the local repository, based on GitHub's tips learngit :$ git Remote add origin [email protected]:michaelliao/learngit.gitPlease be careful to replace the above with michaelliao your own GitHub account name, otherwise, you are loc
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 remote
1. Git add is an easy-to-query command. The SVN add action in Subversion is to add a file to version control, and git add has a completely different meaning.At the same time, Git diff--
Workspaces, staging area, repository, remote repositoriesfirst, the concept1, four working areasGit has four workspaces locally: working directory (working directory), staging area (Stage/index), repository (repository or Git Directory), and git repository (Remote directory). The conversion relationship between the fil
can clone with HTTPS, ssh, or subversion. Click that SSH button to change to the SSH path. This address allows you to download or upload your version library by typing a command line. (There is also a download zip below. You can package and download other open source projects ).
Now go to your local repository. Input
$git remote add origin [emailprotected]:csdbi
testproject/650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M00/82/F0/wKiom1dmQxbja49xAAAwXQj8D6g141.png "title=" 6.png " alt= "Wkiom1dmqxbja49xaaawxqj8d6g141.png"/>At this point, the repository is downloaded locally, if the content is changed on this remote tracing branch:]# echo "New Line" > README]# git add README]#
command:$git Push Origin MasterBy pushing the latest changes to the local master branch to GitHub, you now have a truly distributed repository!(To associate a remote library, use the command git remote add Origin git@server-name:
From: http://blog.jobbole.com/53573/Work steps I will show you the following steps, usually helping me to do projects on one or more machines on my own.
Create a remote, empty code base (on BitBucket)
Add a project to the local code base
Develop new features on the branch
A) keep new features or b) discard them
Perhaps, back to an earlier point in time
To push the local code bas
Problem Description:Re-installed once the system, before the reload Git+tortoisegit well, the submission of the time can be automatically loaded PPK, but after reloading the system, but also regenerate Pulic key uploaded to the server, but each time the submission is prompted key load failed, The key must be manually loaded into the pageant to be submitted normallyProblem Analysis:Each git project config fi
Transferred from: http://zengrong.net/post/1746.htm
This site is reproduced in addition to the article, are the original site or translation.
The article welcomes all forms of reprint, but please 18 years of age and above the reprint of the source of the article, respect for my labor, but also respect your IQ;
This site part of the original and translated articles to provide markdown format source code, welcome to use the source of the article reproduced;
This blog use wpcmd
System environment:
CentOS 6.6 x86_64
Service-Side ip:192.168.2.45
This article builds a remote service for the SSH protocol of Git. With the creation of a normal user, through the SSH protocol authorized access to the operation of the idea is exactly the same, but the server and the client in the operation of the project with Git only, the se
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 libr
good practice for git branching can be found in: git flowTo view a reference to a remote branch
12345
-A* Master Remotes/origin/head-Origin/masterRemotes/origin/master
The above results indicate:There is currently a master branch locally, and there is a reference to the Remotes/origin/master (
Generally we publish a new version to the online server will be a tag in the repository, so we can always view the tag version, that is, the tag is actually a snapshot in the repository. A git tag is similar to a branch, except that the branch is mutable and the label is immutable. Next we show you how to get the version that a tag in the remote repository points to.1. If we
Create a new remote repository (empty)
Create a new remote repository
Set the name of the remote repository and create
Set the warehouse nameRemember : If we add the Readme and. Ignore files when we create the remote repository, we need to perform the oper
About the remote branch-My understanding: The remote branch is always the latest version of the store.If the remote branch has been modified by someone else and its version is higher than the local version, you need to pull the remote branch down before merging and modifying the push to the
On a rolling succession, from Github,csdn's code. The small company that was previously practicing is also managed with Git. It is indeed more convenient to control the version number today. Once the code has been knocked out。Myself due to the completion of the new features. Join a new branch. And then submit it up, that's what the program Ape did a day, even. The weekly report is also submitted from here.Java is used today. Often using eclipse, yeste
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.