• Linux uses git to check out a separate branch


    Under Linux, GIT can check out a branch, but many users do not know that git can check out a single branch. The method of using git to check out a branch is not suitable for checking out a single branch. So how can Linux git check out a single branch? Sometimes, you just want […]

  • Git usage and common commands


    Git application process in team project 1. First, from a git remote warehouse clone project to the local Git clone warehouse address 2. Create development branch Generally, we don’t write code on the master branch, but create a new branch git checkout -b test 3. Modify the code on the test branch, such as completing […]

  • Git common command sorting


    preface Git will not be introduced here. The table is afraid when it sees the command line. These are the common commands, which basically meet more than 99% of the project requirements. It is very practical. text   1、 Common git commands     1.1  git clone <url> [<directory>] From the remote library clone code to the local directory, […]

  • The tutorial of using gitosis to install and build git server in CentOS 6.3


    Git is a distributed version control system. When Git is used, it usually uses SSH protocol to communicate with the server. The main advantages of Using SSH are fast speed (data will be compressed before transmission, faster than HTTP), security and easy reading and writing. There are two ways for clients to access the server through […]

  • Tutorial for installing git on various Linux distributions


    Git is a popular open source version control system (VCS), originally developed for Linux. Different from CVS or SVN, GIT’s version control system is considered as “distributed”. In a sense, GIT’s local working directory can be used as a fully functional warehouse, which has complete history and version tracking capabilities. In this working model, each […]

  • The basic configuration and use example of GIT under Linux system


    Git config configuration file1、 Git is already in your system. You will do something to customize your git environment. You only need to do these settings once; Even if you upgrade, they will be bound to your environment. You can also change these settings at any time by running the command.      Git has a tool […]

  • Collation of GIT operation commands under Linux system


    1. Display the current configuration information Copy code The code is as follows: git config –list 2. Create repoGet it from somewhere else Copy code The code is as follows: git clone git://git.kernel.org/pub/scm/git/git.git Build your own Copy code The code is as follows: mkdir testcd testgit init  3. Display status Copy code The code is […]

  • Gitsis installation and configuration of GIT server and how to use gitignore


    Git server gitosis setup 1. Install openssh server Copy code The code is as follows: sudo apt-get install openssh-server openssh-client 2. Create personal public and private keys In the default user’s home directory path, run the following command to create the public key and private key Copy code The code is as follows: ssh-keygen -t […]

  • The problem of GIT local branch and stash content error disappearing


    For a local project that has been updated for a long time, GIT log suddenly reported an error: [email protected]:~/android/project/kernel/.git$ git log . fatal: your current branch ‘project-dev’ does not have any commits yet If git status, all files are found to be new If git branch – V, the local branch information disappears If git […]

  • The most concise usage of GIT merge


    Git merge is a frequently used command in git, which is mainly used to add (merge) two or more development histories. This article brings you the common usage of GIT merge command. There are three grammars of GIT merge git merge [-n] [–stat] [–no-commit] [–squash] [–[no-]edit] [-s <strategy>] [-X <strategy-option>] [-S[<keyid>]] [–[no-]allow-unrelated-histories] [–[no-]rerere-autoupdate] [-m <msg>] […]

  • How to create a new git branch in eclipse


    Today, let’s take a look at the method of creating a git code branch in eclipse. Everyone needs a code branch for code development, so it’s very common. Let’s take a look at the detailed tutorial. Software name: Official Chinese version of eclipse classic 4.4.2 Software size: 155MB Update time: 2015-10-19Download now 1. To select […]

  • About idea git only commit without push


    Recently, I found a problem about the operation of idea~ Let’s see what’s going on. We all know that using git distributed version control tool, there will be a local temporary storage area, that is, a local warehouse for lifting and pulling code. This means that our commit is submitted to our local warehouse, and […]