in? The answer is that HEAD is a very special pointer dedicated to pointing to the current branch in the local branch. We can simply understand it as: commit
GitHub Tutorials:
GitHub tutorials
Git tag management details
Git branch
existing version; H20, H28,h26,i8 H28,h26,i8 is created from the H20 below. Requirements: Create a new branch from below H28 continue development. Ideas: All the code is placed in the H20 warehouse, first download the H20 full repository, that is, the. git folder content, which is essentially a zip file. Then remove a branch
a branch to fix itHowever, the work currently being done on Dev has not yet been submittedGit also provides a stash function that can "store" the current work site, and then continue to work after resuming the site laterModify Git.txt git is ok first. Git is nice. Change Branch. Using Master. Using Branch1
Whether you encounter this problem when using git:you're using Git for versioning, and one day you went on to work yesterday and you submitted n commits, and the result is that when you merge the remote branch, you don't notice the state of the branch you're submitting before you work .As a result, the results of your submission to the hotfix
can do it quickly.First, we create the dev branch and then switch to the dev branch:$ git checkout-b devSwitched to a new branch ' Dev 'Equivalent to the following two commands:$git Branch Dev$
Related articles: about verifying that there is an SSH configuration and how to generate SSH key can refer to the article: Git usage manual: Generate SSH Key
For the use of SSH key and the configuration of the public key in GitHub, Gitlab, please refer to the article: Git manual: Use SSH key and configure the SSH key public key to the concepts and relationships of Git
Source: http://blog.tsnrose.com/2012-04-18-git-fetch.html (Thanks to the author for sharing)Sometimes we need to get other people's code repositories, to merge others (not push to the remote repository), to incorporate their own modifications, or to look at the code under a branch of someone else (without actually switching to someone else's branch), this article
Git is a great solution-2. Detailed explanation of Git local operation commandsGit is a great solution-2. Detailed explanation of Git local operation commands
Tag: Git
Introduction
The previous section explains some concepts about
Git usage (new branch), gitbranch
Create new branch and view all branch (kk code is based on existing branch)
Switch to branch kk:
Of course, we can also operate in android studio:
Note that the Code will be lost when switchin
The introduction of git is not much said. Here is just a simple entry-level operation.How to install, initialize, and perform simple operations and branch operations.Everything is simple, not reasonable, but simple operations.Original article, if reproduced, please indicate the source: http://blog.csdn.net/yihui823/article/details/6673804I. Preparation 1. Installation
Under Ubuntu:
Sudo apt-Get install
There are two methods.
1. Git pull: Get the latest code locally and automatically merge it to the current branch.
Command display
// Query the current remote version $ git remote-V // pull and merge the latest code $ git pull origin master [Example 1: pull the remote origin/Master
Local has two branches A and b,a are release versions, B is the development version. According to the truth, a branch of the content is generally can not be arbitrarily changed, we just develop branch B on the line. Finish it again.
But today, I have a problem, that is, I did a move under branch B,
The Master branch in Gitlab is set to protected, and for developer members it is necessary to pull a separate branch for development until the stability is later merge into the Master branch. But how do we develop locally based on the developer branch, and how do we pull the developer
View local branches
Git Branch * Dev master
* Indicates that the current Dev branch is located.
View remote branches
Git Branch -- remote origin/dev origin/Master
View All remote and
:
Switched to branch ' master '
To view the primary branch file:
– View file results: No files added in Branch1;
Androidmanifest.xml ic_launcher-web.png Res
assets Libs src
bin proguard-project.txt
Gen
Iv. Submission of Branches
Commit the Branch command: Submit the
Gitlab The Master branch is set to protected, the members of the developer identity need to pull a branch separately to develop it, until the stability is later merge into the Master branch, But at this time how do we develop locally according to the developer branch, and how pull developer branches locally, in the pus
the location of the local warehouse, according to personal custom, such as the selection of the project source code the same directory
Click OK to create the local repository, note that this is only local. Add the project source to the local repository below.
The following figure is a list of the three commands that
task, created a branch and developed it on the branch
Building a branch is also a common operation, such as temporarily modifying bugs, developing uncertain whether to join the function, etc., you can create a branch, and then wait for the right time to merge into the backbone.
The creation process is as follows:
Sel
Sometimes git clones come down with a lot of branch, and the trouble is that if the main branch doesn't have code then you can only see the. git directory. As in the following:$ git clonegit://gitorious.org/android-eeepc/mesa.gitDiscover that there is only one.
Sometimes git clones come down with a lot of branch, and the trouble is that if the main branch doesn't have code then you can only see the. git directory. As in the following:$ git clonegit://gitorious.org/android-eeepc/mesa.gitDiscover that there is only one.
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.