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 versi
First, we need to have a branch, such as the Dev branch, how to merge the dev Branch code into the Master branch 1, to create a new branch on Git's project Master,new
published, all its modifications are included in the masterpromoted: The branch used by the artist and the game planner to merge into the branch every day from the master branch, and if there is no serious problem with the basic test, commit to that branch, otherwise the master Br
1. View branches:The GIT branch command lists all branches with a * number in front of the current branch 2. Create a branch:git branch 3. Switch branches:git checkout 4. Create + switch branch: git checkout-b Now that the workspa
Objectives:
Http://www.adaiw.com /? P = 611
Use a git repository to manage multiple branches and release multiple versions. The main logic of these versions is one to one, and the functional appearance is slightly different.
The command is as follows:
New a branch:
$git checkout HEAD -b newBranch
Push to remote:
$
If you want to check the code of a previous version during development, first check the log
Git logcommit commit: Eric
Then we checkout a version
Git checkout f224a720b8192165a4e70f2564e42859964bebbb
If a problem is found, we changed it. Then we commit and push, but the server does not have the information we submitted because we are on a new
The command is as follows:1: Locally created branch dev[Email protected]/d/home/myself/symfony (master) $ git branch dev2: The following is the submission of the local branch to the remote repository[Email protected]/d/home/myself/symfony (master) $ Git push origin devtotal
Delete remote BranchGit push Origin -- delete View local branchesGit BranchCreate a local branchGit branch View All branches (local + Remote)Git branch-Delete local branchGit Branch -- delete Switch BranchGit checkout Create a new branch
Sometimes you need to get the code for a remote branch from a remote git server, and the command is GIT fetch Origin remote-branch:local-branch, which is easier to forget, especially recorded.
1. View Remote repositories
git Remote-v
Origin http://git.dev.qianmi.com/elif
Sometimes you need to get the code for a remote branch from a remote git server, and the command is git fetch Origin remote-branch:local-branch, which is easier to forget, especially recorded.1. View Remote repositoriesGit remote-voriginhttp://git.dev.qianmi.com/elifeapp/weidian.git (Fetch) Originhttp://git.dev.qianmi.
Git's powerful branch management functions and its offline work make it widely used in various major enterprises.
Now that there are branches, there is of course the merge problem, and the advantage that git itself can work offline also brings a headache. Since it is offline work, so developers do not need to synchronize with the server all the time, so there wil
Build jenkins Plug-In Git Parameter Plug-In branch project, jenkinsgit
Jenkins Plug-In Git Parameter Plug-In Parameter construction. You can select a branch of git to build the service during the construction. The Dynamic Choice Parameter Plug-In is used In earlier jenkins
Branching is the parallel universe in sci-fi movies, and while you're working on git in front of your computer, another one is working on SVN in another parallel universe.If two parallel universes don't interfere with each other, that's not going to affect you now. However, at some point in time, two parallel universes merged, and as a result, you learned both Git and svn!.What is the use of branching in pr
First, clone Repository
Clone repository on Github, as follows:
git clone git@github.com:fbing/design-patterns.git
Ii. Branch of Management
1. View Branches
1. View Local branches
Use the git Branch command, as follows:
$ git
When I looked at Pro Git, I was frightened by the author's nickname "Nuke-Class option", so I never dared to try it curiously. Nuclear bombs, with the right to the infinite, with the wrong destructive power infinite!But today, I had to use it because I wanted to put some of my original code on GitHub and go public. Since did not want to public before, to upload only found that can not upload more than 50M files.Toss for a while, still can't upload, so
Recently, users git found that it is really good to use, recently done some finishing summary, found some very good information, collected here, for forgetting.Git getting started is quite simple, before some of the article, about git, but are some blunt operation, and did not systematically learn and use it. Some recent experience tells me, do not fear new thing
versioned according to a diff file.
But in git, we don't need to use diff and patch directly to make patches, which is both dangerous and troublesome. Git offers two simple patch scenarios. One is the standard patch generated with Git diff, and the second is git format-patc
1, install Zshsudo apt-get install zsh2, cloning the projectgit clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh3. Create a new. zshrc fileCP ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.ZSHRC4. Back up the ~/.ZSHRC file (plan for later)CP ~/.ZSHRC ~/.zshrc.orig5, change the system default bash environmentChsh-s/bin/zsh6, exit the current user, re-login (reboot only for the root user)RebootThe
To create a warehouse on GitHub:Create a new repository on the command lineTouch readme.mdGit initgit add readme.mdGit commit-m "First commit"Git remote add Origin https://github.com/BrentHuang/MyRepo.gitGit push-u Origin MasterCreate a new branch locally: Git
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.