Giter Site home page Giter Site logo

learn_submodule's Introduction

submodule

create submodule

git submodule add https://github.com/github/swift-style-guide

git status

On branch master

Initial commit

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)

	new file:   .gitmodules
	new file:   swift-style-guide

cat .gitmodules

[submodule "swift-style-guide"]
	path = swift-style-guide
	url = https://github.com/github/swift-style-guide

diff --git a/swift-style-guide b/swift-style-guide

diff --git a/swift-style-guide b/swift-style-guide
new file mode 160000
index 0000000..926d7ba
--- /dev/null
+++ b/swift-style-guide
@@ -0,0 +1 @@
+Subproject commit 926d7ba8503fb5efcd0a890356862e1c89df1f00

git commit -am "initial commit submodule swift-style-guide git push

clone project with submodule

git clone [email protected]:2w3/learn_submodule.git
ls learn_submodule/swift-style-guide
swift-style-guide 디렉토리는 비어있다.

cd learn_submodule && git submodule init

Submodule 'swift-style-guide' (https://github.com/github/swift-style-guide) registered for path 'swift-style-guide'

git submodule update

Cloning into '/Users/snow/Documents/workspace/learn_submodule/swift-style-guide'...
Submodule path 'swift-style-guide': checked out '926d7ba8503fb5efcd0a890356862e1c89df1f00'

ls swift-style-guide

CONTRIBUTING.md LICENSE         README.md

learn_submodule's People

Contributors

2w3 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.