The ideal way is to use the Git submodule function:
$ cd project $ git submodule add https://bitbucket.org/user/project.git/wiki
This creates a wiki and .gitmodules , and then:
$ cd wiki $ nano Home.md
Change some of the information in the file and:
$ git add . $ git commit -m "Some comment" $ git push origin master
Return to the project:
$ cd .. $ git add . $ git commit -m "Added wiki module" $ git push [remoteName] [remoteBranch]
In this case, the repo project will generate a link to a specific commit of the wiki repo, you can update both only one of them.
I hope this will be helpful.
Additional information: https://git-scm.com/book/en/v2/Git-Tools-Submodules
source share