Tag:git

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

  • How to set git user name and password in souretree

    Time:2021-3-23

    Sourcetree switches git login users. Before submitting the remote service in sourcetree, the account of the colleague was used. After the colleague left, the account was also cancelled, and then it could not be submitted. You need to modify the account, change the computer, and sourcetree saves the login information of the original user. After […]

  • Git push local project to remote branch (GIT command version)

    Time:2021-3-4

    1. Create a project locally. You can use eclipse, idea and other development tools to create a project. Open the root directory to the next level of the project name 2. Use git client to enter the folder of helloword in the directory above 3. Initialize project git init 4. Add command git add – […]

  • Git log queries the log according to specific conditions and counts the number of modified code lines

    Time:2021-3-1

    preface With the growth of age and the accumulation of knowledge, recently there is often a sudden sense of openness, or a sudden new understanding of an existing thing. For example, the word statistics has been in contact for a long time and has never considered what it means. However, the word statistics is used […]