GithubHelp home page GithubHelp logo

linux-learning's Introduction

linux-learning

This is a collection of notes and resources for learning Linux.

git submodules

  • 自动初始化并更新仓库中的每一个子模块, 包括可能存在的嵌套子模块。

    1. 方式1

      git clone --recurse-submodules https://github.com/realwujing/linux-learning.git
    2. 方式2

      git clone https://github.com/realwujing/linux-learning.git
      git submodule update --init --recursive
  • 递归地抓取子模块的更改并更新当前仓库中的每一个子模块, 包括可能存在的嵌套子模块。

    1. 方式1

      git pull --recurse-submodules
    2. 方式2

      git pull
      git submodule update --init --recursive
  • 推送当前仓库中的每一个子模块, 包括可能存在的嵌套子模块。

    1. 方式1

      git push --recurse-submodules=on-demand
    2. 方式2(方式1报错情况下使用)

      git submodule foreach --recursive 'git push' && git push
  • 更改submodule分支

    git config -f .gitmodules submodule.assembly.branch main
    git submodule update --remote
  • 在你拉取的提交中, 可能 .gitmodules 文件中记录的子模块的 URL 发生了改变。 比如,若子模块项目改变了它的托管平台,就会发生这种情况

    # 将新的 URL 复制到本地配置中
    git submodule sync --recursive
    # 从新 URL 更新子模块
    git submodule update --init --recursive

More

linux-learning's People

Contributors

realwujing avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.