=====The following workaround may only be applicable to the situation I have encountered, but also want to do hooks, but also to restore the old people to configure the normal use of git.=====Because it is a former employee with the staff, so first check the original git can be used normally not:1. Only one branch master2, the repository and the project directory
From: http://rongjih.blog.163.com/blog/static/3357446120107111449543/
Get ready:Sudo apt-Get install Git-SVN
Follow these steps to convert the svn repository to a git Repository:1) Move the remote SVN repository to the Local Machine (this step is mainly used to increase the
, and it's also possible to select an existing directory. You only need to cut to the path of the directory where you can execute git init . 3. Add files to the Git local repository
Generally divided into two main steps, first, using the command git add filename, (can be reused multiple times, add multiple files); seco
capture their updates to the local device and add them to your project before pushing them again. for details about pushing data to a remote warehouse, see Chapter 3.
View remote Repository Information
Run the GIT remote show [Remote-name] command to view details of a remote repository. For example, to view the cl
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
remote repository branches
git remote showIs used to inspect a remote repository. It goes and checks the remote repository to see what branches have been added and removed since the lastgit fetch.
Doinggit remote showAt the moment only shows us the remote repo's master branch which we pushed earlier:
$
project and the previous global setting (for example, changing a private email address to a work mailbox)You can use it in your project`gitconfig命令不带--global选项来设置.这会在你当前的项目目录下创建.git/config,从而使用针对当前项目的配置。`Get a git repositoryNow that we've set everything up, we need a git repository.There are two ways to get it:-Clone (clone, copy) from an existing
you want to contribute to an open source project, you need to use the git clone command. If you are familiar with other VCS systems (such as subversion), be aware that the commands you use are "clone" rather than "checkout". This is an important feature of git that distinguishes it from other version control systems, and Git clones almost all of the data on the
on the small triangle, select Master---"ADD spec---" FinishNext Click OKWhen you're done, sign in to your GitHub account to see the code on your push!!!Iv. to clone a code repository on a remote GitHub to a method in local eclipse, switch to git view firstWindow--->show view--->other---> Git--->
Windows, such as d:/code/, the server SSH user is Admin,ip 192.168.1.100, then the command is git remote add Origin ssh://admin@192.168.1.100d :/code/)
If you are prompted to indicate that Origin already exists, that is, "fatal:remote origin already exists", use the GIT Remote RM Origin command to delete origin, delete and re-execute git remote add Origin to ass
/learngit.gitSecond, git common commands"Basic Command"
mkdir creating a File cd file entry
Git init turns this directory into a repository that git can manage, generating. git files
git add readme.txt Adding files to the
on the small triangle, select Master---"ADD spec---" FinishNext Click OKWhen you're done, sign in to your GitHub account to see the code on your push!!!Iv. to clone a code repository on a remote GitHub to a method in local eclipse, switch to git view firstWindow--->show view--->other---> Git--->
First of all, thank you for your support. Some of the content of this blog show the format of a terrible, deliberately adjusted, I hope to be helpful to everyone.
Git has been used for a while in a standalone environment and found that the Git plugin in IntelliJ idea is not perfect. First, the Git local
The previous article described some of the uses of Git remote repositories, but there are some things that need to be added, so there's this sequel.. gitignoreIn the previous article, we introduced the Git patch feature, and when we generated the patch, "Git status" would show that the patch file was "untracked files".
code to GitHub, the description is displayed on the code file information.The above steps are just a matter of submitting the code to the local repository.The third step is to upload the code to the remote repository, which is GitHub.git remote add origin [email protected]:xxx/xxx.gitThe following [email protected]:xxx/xxx.git is the SSH URL generated on GitHubIf you want to modify, you can open the config
Git remote repository details
Outline:
I. Preface
Ii. Git server Construction
3. Add remote warehouses
4. clone a repository from a remote location
V. Summary
Note: CentOS 5.5 x86_64, Git server version: git version 1.8.2.1, and C
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,
repository3. Git show Tag1//view tag content4, git tag//See which tags5, Git tag-d tag1//Delete tagsgit, like any other version control system, can tag (tag) to mark a point as a version number, such as 0.1.3, v0.1.7, ver_0.1.3. After the development of the program to a stage, we need to label, release a version, the
: protocol for the shared file system repository so that the server can clone it and use the local work service as the cache. The repository implementation insinuate the {label} parameter of the HTTP resource to the GIT tag (commit ID, branch name, or label).If the Git branch or tag name contains a slash ("/"), you
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.