Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1a3efd5

Browse files
committed
GIT-6062 Add/remove nested repo
1 parent 0fbc382 commit 1a3efd5

6 files changed

+92
-2
lines changed
25.9 KB
Loading[フレーム]
48.2 KB
Loading[フレーム]
49.1 KB
Loading[フレーム]
17.3 KB
Loading[フレーム]

‎git-integration-for-jira-self-managed/Adding-a-nested-repository-gij-self-managed.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ For example:
9797

9898
 
9999

100-
## Adding a nested repository example
100+
## Example: Adding a nested repository with Git Submodule
101101

102102
While, GitHub does not allow nested repositories (Git doesn't allow this for bare repositories), you can use submodules to nest repositories on the "client side" in the working tree:
103103

104104
1. Clone the parent directory.
105105

106-
2. Add the sub-repository as a submodule:
106+
2. Add the sub-repository as a [submodule](https://git-scm.com/book/en/v2/Git-Tools-Submodules):
107107

108108
`git submodule add https://github.com/\<username\>/\<sub_repo\>.git`
109109

@@ -122,6 +122,28 @@ While, GitHub does not allow nested repositories (Git doesn't allow this for bar
122122
</div>
123123
</div>
124124

125+
&nbsp;
126+
127+
## Adding a nested repository with Git Integration for Jira app
128+
129+
Adding a nested repository configuration through the Git Integration for Jira app is similar to adding a plain Git repository.
130+
131+
1. Go to the Manage integration configuration page.
132+
133+
2. Click either the Connect to Git repository button or the Git icon on the integration panel.
134+
135+
3. On the following screen, paste the clone URL of the submodule from your git service portal.
136+
137+
4. On the following screen, the input fields depends on what type of clone URL you’ll be using:
138+
139+
* **HTTPS authentication** – Enter your credentials such as username and password. For the password, provide the PAT as the password.
140+
141+
* **SSH authentication** – Provide the private ssh key. Enter the passphrase if your SSH key requires a passphrase.
142+
143+
5. On the Settings screen, leave all options as is. Click Finish to complete this setup.
144+
145+
The nested repository configuration is added to the Manage integrations list.
146+
125147
&nbsp;
126148
* * *
127149

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
---
2+
3+
title: Removing a nested repository
4+
description:
5+
taxonomy:
6+
category: git-integration-for-jira-data-center
7+
8+
---
9+
10+
<div class="bbb-callout bbb--note">
11+
<div class="irow">
12+
<div class="ilogobox">
13+
<span class="logoimg"></span>
14+
</div>
15+
<div class="imsgbox">
16+
<b>Note</b><br>
17+
You can only remove a nested git repository settings if it’s a standalone integration.
18+
</div>
19+
</div>
20+
</div>
21+
22+
## Pre-GIJ version 5.x.x
23+
24+
Go to the Manage integrations configuration page and choose an integration with the nested repository to remove.
25+
26+
1. Click &nbsp;<img src='/wp-content/uploads/actions-icon.png' /> Actions ➜ **Remove repository**.
27+
28+
![](/wp-content/uploads/gij-datacenter-pre-5x-actions-remove-nested-repo.png)
29+
30+
2. The following screen is displayed.
31+
32+
![](/wp-content/uploads/gij-datacenter-pre-5x-remove-nested-repo-prompt.png)
33+
34+
Leave the option as is to also remove cloned repository files from the Jira server.
35+
36+
Uncheck this option if you want to keep the cloned git repository files in the Jira server.
37+
38+
3. To finish this process, click **Remove** to delete the git repository settings from the Manage integration list.
39+
40+
&nbsp;
41+
42+
## GIJ version 5.x
43+
44+
Go to the Manage repositories configuration page and navigate to the nested repository you want to manage.
45+
46+
1. For that nested repository, Click &nbsp;<img src='/wp-content/uploads/actions-icon.png' /> Actions ➜ **Disconnect integration**.
47+
48+
![](/wp-conent/uploads/gij-datacenter-5x-disconnect-nested-repo.png)
49+
50+
2. The following screen is displayed.
51+
52+
![](/wp-contgent/uploads/gij-datacenter-5x-disconnect-nested-repo-prompt.png)
53+
54+
Leave the option as is to also remove cloned repository files from the Jira server.
55+
56+
Uncheck this option if you want to keep the cloned git repository files in the Jira server.
57+
58+
3. To complete this process, click **Disconnect integration** to remove the git repository settings from the Manage integration list.
59+
60+
61+
&nbsp;
62+
* * *
63+
64+
[**Prev:** Edit nested repository settings](/git-integration-for-jira-data-center/edit-nested-repository-settings-gij-self-managed)
65+
66+
[**Next:** SSL verify](/git-integration-for-jira-data-center/ssl-verify-gij-self-managed)
67+
68+

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /