Skip to content

Commit 89c3950

Browse files
committed
feat: add fork remote command
The command allows you to quickly add a new 'fork' remote with replaced owner in the origin URL of the selected remote. For example: given url: https://github.com/jesseduffield/lazygit.git and username: karolzwolak adds a new remote with url: https://github.com/karolzwolak/lazygit.git
1 parent 32a701c commit 89c3950

15 files changed

+323
-25
lines changed

docs/Config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ keybinding:
703703
pushTag: P
704704
setUpstream: u
705705
fetchRemote: f
706+
AddForkRemote: F
706707
sortOrder: s
707708
worktrees:
708709
viewWorktreeOptions: w

docs/keybindings/Keybindings_en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
316316
| `` n `` | New remote | |
317317
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
318318
| `` e `` | Edit | Edit the selected remote's name or URL. |
319+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
319320
| `` f `` | Fetch | Fetch updates from the remote repository. This retrieves new commits and branches without merging them into your local branches. |
320321
| `` / `` | Filter the current view by text | |
321322

docs/keybindings/Keybindings_ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
342342
| `` n `` | 新しいリモート | |
343343
| `` d `` | 削除 | 選択したリモートを削除します。そのリモートからのリモートブランチを追跡しているローカルブランチは影響を受けません。 |
344344
| `` e `` | 編集 | 選択したリモートの名前またはURLを編集します。 |
345+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
345346
| `` f `` | フェッチ | リモートリポジトリから更新をフェッチします。これにより、ローカルブランチにマージせずに新しいコミットとブランチを取得します。 |
346347
| `` / `` | 現在のビューをテキストでフィルタリング | |
347348

docs/keybindings/Keybindings_ko.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
266266
| `` n `` | 새로운 Remote 추가 | |
267267
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
268268
| `` e `` | Edit | Remote를 수정 |
269+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
269270
| `` f `` | Fetch | 원격을 업데이트 |
270271
| `` / `` | Filter the current view by text | |
271272

docs/keybindings/Keybindings_nl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
294294
| `` n `` | Voeg een nieuwe remote toe | |
295295
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
296296
| `` e `` | Edit | Wijzig remote |
297+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
297298
| `` f `` | Fetch | Fetch remote |
298299
| `` / `` | Filter the current view by text | |
299300

docs/keybindings/Keybindings_pl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ _Legenda: `<c-b>` oznacza ctrl+b, `<a-b>` oznacza alt+b, `B` oznacza shift+b_
390390
| `` n `` | Nowy zdalny | |
391391
| `` d `` | Usuń | Usuń wybrany zdalny. Wszelkie lokalne gałęzie śledzące gałąź zdalną z tego zdalnego nie zostaną dotknięte. |
392392
| `` e `` | Edytuj | Edytuj nazwę lub URL wybranego zdalnego. |
393+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
393394
| `` f `` | Pobierz | Pobierz aktualizacje z zdalnego repozytorium. Pobiera nowe commity i gałęzie bez scalania ich z lokalnymi gałęziami. |
394395
| `` / `` | Filtruj bieżący widok po tekście | |
395396

docs/keybindings/Keybindings_pt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
325325
| `` n `` | Novo controle | |
326326
| `` d `` | Remover | Remover o controle remoto. Quaisquer ramificações locais de rastreamento de um ramo remoto do controle não serão afetadas. |
327327
| `` e `` | Editar | Edit the selected remote's name or URL. |
328+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
328329
| `` f `` | Buscar | Fetch updates from the remote repository. This retrieves new commits and branches without merging them into your local branches. |
329330
| `` / `` | Filter the current view by text | |
330331

docs/keybindings/Keybindings_ru.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ _Связки клавиш_
362362
| `` n `` | Добавить новую удалённую ветку | |
363363
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
364364
| `` e `` | Edit | Редактировать удалённый репозитории |
365+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
365366
| `` f `` | Получить изменения | Получение изменения из удалённого репозитория |
366367
| `` / `` | Filter the current view by text | |
367368

docs/keybindings/Keybindings_zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ _图例:`<c-b>` 意味着ctrl+b, `<a-b>意味着Alt+b, `B` 意味着shift+b_
390390
| `` n `` | 添加新的远程仓库 | |
391391
| `` d `` | 删除 | 删除选中的远程。从远程跟踪远程分支的任何本地分支都不会受到影响。 |
392392
| `` e `` | 编辑 | 编辑远程仓库 |
393+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
393394
| `` f `` | 抓取 | 抓取远程仓库 |
394395
| `` / `` | 通过文本过滤当前视图 | |
395396

docs/keybindings/Keybindings_zh-TW.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -390,6 +390,7 @@ _說明:`<c-b>` 表示 Ctrl+B、`<a-b>` 表示 Alt+B,`B`表示 Shift+B
390390
| `` n `` | 新增遠端 | |
391391
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
392392
| `` e `` | 編輯 | 編輯遠端 |
393+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL and optionally check out a branch from new remote. |
393394
| `` f `` | 擷取 | 擷取遠端 |
394395
| `` / `` | 搜尋 | |
395396

0 commit comments

Comments
 (0)