question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How get content from other repos ?

See original GitHub issue

Hi,

I try to develop one plateform with Nuxt for get in on place docs from multiple repositories. But I can’t get the content from outside content folder, someone has one solution for get content outside the default folder ?

Thank you.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rahulkumarsingh73690commented, Aug 10, 2020

Yes, but I try to find one more usefull method.

I am also looking for this but didn’t get good solution

2reactions
mayashavincommented, Jul 22, 2020

You can add the other repo as submodule by using git submodule add link-to-your-repo path-to-target-folder. I did that recently on my project. For example, to add your content repo to the current repo as submodule, just do: git submodule add <link-to-content-repo> content

The folder content in your repo will appear as a reference to the target repo, and locally it will have all the files in that repo (assume you have sufficient permission). On Github it will appear as a reference folder and not clickable.

To update submodule with the latest commit from your repo, run

git submodule foreach git pull origin master

or

git submodule update --recursive

https://github.blog/2016-02-01-working-with-submodules/

Hope it helps 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

version control - Git pull from another repository
Issue the following command in your Acme repo. It adds a new remote repository named upstream that points to the Generic repo.
Read more >
Git Get One File From Another Repo
First copy the URL of the remote repo you want to get the file from, in this case, the amigo/rxjsx . Then fetch...
Read more >
Referencing One Git Repository from Another
To do this, run the git subtree add command. This command will embed the master branch of Tim Pope's VIM-sensible in your dotfiles....
Read more >
How to Mirror (Copy) an Entire Existing Git Repository Into ...
OK, slightly different process in that you basically just have to add a step. You first have to get the original Git repository...
Read more >
Accessing a File in a GitHub Repository - YouTube
In this video we look at how to use files that are in a GitHub repository Looking for content on a particular topic?...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found