Tag:git

  • Git usage and common commands

    Time:2021-6-24

    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

    Time:2021-6-21

    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

    Time:2021-6-20

    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

    Time:2021-6-6

    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

    Time:2021-6-1

    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

    Time:2021-5-31

    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

    Time:2021-5-30

    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

    Time:2021-4-11

    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

    Time:2021-4-9

    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

    Time:2021-4-6

    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

    Time:2021-4-4

    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 […]

  • Check out the specified folder on git to the local code

    Time:2021-4-3

    When the project is too large, it’s a headache to pull the project from the server. Let’s talk about how to pull only one or several folders to the local area. Upper Code: git clone -n [email protected]:test/test_platform.git cd test_platform git config core.sparsecheckout true echo webapp/css >> .git/info/sparse-checkout git checkout master If you need to check […]