Git branch operation tutorial, git branch operation tutorial
1. Create a branch
Git branch name
2. Switch Branch
Git checkout branch name
3. Submit the code after modifying the branch
Gi
Find the best git starter tutorial you've seen today
http://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/
Paste some commands
1. Git add to add files to staged area.2. Git commit commits staged file, and there are several options that are important:-a
Git learning, git learning tutorial
Git command line configuration1 install Github2. Install msysgit3. Configure the user name and Fuel TankGit config -- global user. name My command is: git config -- global user. name mchdbaghGit config -- global user. email My command is:
code, using the Echo statement to write "Hello Git" in the Index.txt fileThen use the Cat command to see if the text was written successfullyOnce the write is successful, we can include this file in our repository, but before we join the repository, we need to create a user to commit to the server repository.Follow the command below to create the userAfter creating the user, execute the git add index.txt c
Git advanced tutorial
Today, I accidentally saw it was said that it was a Git getting started tutorial. After reading it, I learned a lot of new things and summarized and recorded what I learned. Otherwise, I always felt that something was missing.
The following figure illustrates the concept of a work directory, a ver
Previously useful, but relatively few, this brother hope our project code is uploaded to GitHub, the new brother will not use GitHub, let me give science, let them get started. Just as I just reinstall the system, the process of installing git from scratch and the first push code to GitHub is recorded:1. Download and install git (windows7)Download Git:https://www.git-scm.com/download/winClick on the exe fil
SVN's merge.
Cherry-pick only combines the specified commit
Rebase changes branch points: Find the common ancestor of the two branch to be merged, and then commit it with only the branch to be merged by merge, then use the current branch and then commit. This method does not share the local branch with others, because the re-commit log is cut down.
Command operation
Git merge
ObjectiveI have always wanted a piece of this stuff, because when I first contacted, I also carefully read the Liaoche tutorial, but it seems I think a little bit more, and will bring me a lot of redundant and repetitive operating burden, so I hope to compress it in my work cost, but search for a while did not find a satisfactory tutorial, A new year to comb your own experience.Maybe the boys are more big G
Install Git on LinuxFirst, you can try typing git to see if the system has git installed:1 giIf you happen to be using Debian or Ubuntu Linux, you sudo apt-get install git can simply complete the git installation in one piece.If it is a different Linux version, you can ins
. First, if you want to use git well, you must really understand its principles and concepts. For those who are familiar with CVS, it is especially important to change the concept of pure centralized source code management, which may also make you feel a little difficult. You may feel a little difficult at the beginning of using git, but you will definitely like it when you get to know it. It must be, just
the default push when running Git push (the last two lines). It also shows which remote branches are not synchronized to the local (caching branch on line sixth), which have been synchronized to the local remote branch has been deleted on the remote server (Stale tracking branches the two branches below), and running Git pull will automatically merge which branches (the issues and master branches listed in
This tutorial was posted on the community web site and is now transferred to your blog:
Http://oss.lzu.edu.cn/artical.php?id=16
Description: All pictures of this tutorial are from "Pro git". All of the following operations, unless specifically stated, are based on Linux terminals. If you find that this article has errors, or other questions, please contact me: we
Git-itHttps://github.com/jlord/git-it2016-08-01In Freecodecamp's guidance learned the git-it.Git-it is a tutorial that guides the use of Git and GitHub, and is said to be the author of GitHub internal Cheng. (in Git-it, found anot
. When branch is merge, not only will the code be merge together, but the check in history will be retained, which is very important.6 .... Too manyOf course, git will also bring us some difficulties. First, if you want to use git well, you must really understand its principles and concepts. For those who are familiar with CVS, it is especially important to change the concept of pure centralized source code
commands are almost all public in each version control tool. Next we will try some unique git commands:
Git branch: add, delete, and query branches, for example, 'git BranchNew_branch creates a new branch named new_branch from the current working version, 'git branch-dNew_branch will forcibly Delete the branch called
location you can choose the path, I choose "Desktop/Project name", the name of the project name, click on the clone, here to complete, remote and local connection, The changes you made in the test at the specified desktop location can then be easily submitted to git.4. Open the test on the desktop and you can see that there is a readme.md file, do not touch it. Then I randomly copy a project into the folder ()5. Open Sourcetree, here will see local c
svn, git citool, gitk, and Git automatic prompt scripts:
Git svn: Git and SVN can be easily integrated, which greatly reduces the learning cost for migration from SVN to Git, this is the first time that I suggest you use Git.
Android Basics Getting Started tutorial--1.5.1 git using the tutorial's basic operation of the local repositoryTags: Android basics Getting Started TutorialWhat is Git?
A distributed version control system, similar to SVN, but one version control system that is far more powerful than SVN①git can be easily vers
Gitbook is a command-line tool (node. JS Library) that we can borrow to make beautiful books using Github/git and markdown, but it's not a tutorial on git.Supports multiple formats for outputGitbook supports the output of multiple document formats, such as:
Static site: Gitbook The default output of this format, the resulting static site can be directly hosted on the GitHub pages service;
PDF:
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.