Skip to content

Commit cdaea54

Browse files
karolzwolakstefanhaller
authored andcommitted
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 1fd771f commit cdaea54

15 files changed

+323
-25
lines changed

docs/Config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ keybinding:
694694
pushTag: P
695695
setUpstream: u
696696
fetchRemote: f
697+
AddForkRemote: F
697698
sortOrder: s
698699
worktrees:
699700
viewWorktreeOptions: w

docs/keybindings/Keybindings_en.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
315315
| `` n `` | New remote | |
316316
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
317317
| `` e `` | Edit | Edit the selected remote's name or URL. |
318+
| `` 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. |
318319
| `` f `` | Fetch | Fetch updates from the remote repository. This retrieves new commits and branches without merging them into your local branches. |
319320
| `` / `` | Filter the current view by text | |
320321

docs/keybindings/Keybindings_ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,7 @@ _凡例:`<c-b>` はctrl+b、`<a-b>` はalt+b、`B` はshift+bを意味
341341
| `` n `` | 新しいリモート | |
342342
| `` d `` | 削除 | 選択したリモートを削除します。そのリモートからのリモートブランチを追跡しているローカルブランチは影響を受けません。 |
343343
| `` e `` | 編集 | 選択したリモートの名前またはURLを編集します。 |
344+
| `` 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. |
344345
| `` f `` | フェッチ | リモートリポジトリから更新をフェッチします。これにより、ローカルブランチにマージせずに新しいコミットとブランチを取得します。 |
345346
| `` / `` | 現在のビューをテキストでフィルタリング | |
346347

docs/keybindings/Keybindings_ko.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
265265
| `` n `` | 새로운 Remote 추가 | |
266266
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
267267
| `` e `` | Edit | Remote를 수정 |
268+
| `` 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. |
268269
| `` f `` | Fetch | 원격을 업데이트 |
269270
| `` / `` | Filter the current view by text | |
270271

docs/keybindings/Keybindings_nl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
293293
| `` n `` | Voeg een nieuwe remote toe | |
294294
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
295295
| `` e `` | Edit | Wijzig remote |
296+
| `` 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. |
296297
| `` f `` | Fetch | Fetch remote |
297298
| `` / `` | Filter the current view by text | |
298299

docs/keybindings/Keybindings_pl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ _Legenda: `<c-b>` oznacza ctrl+b, `<a-b>` oznacza alt+b, `B` oznacza shift+b_
389389
| `` n `` | Nowy zdalny | |
390390
| `` d `` | Usuń | Usuń wybrany zdalny. Wszelkie lokalne gałęzie śledzące gałąź zdalną z tego zdalnego nie zostaną dotknięte. |
391391
| `` e `` | Edytuj | Edytuj nazwę lub URL wybranego zdalnego. |
392+
| `` 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. |
392393
| `` f `` | Pobierz | Pobierz aktualizacje z zdalnego repozytorium. Pobiera nowe commity i gałęzie bez scalania ich z lokalnymi gałęziami. |
393394
| `` / `` | Filtruj bieżący widok po tekście | |
394395

docs/keybindings/Keybindings_pt.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
324324
| `` n `` | Novo controle | |
325325
| `` d `` | Remover | Remover o controle remoto. Quaisquer ramificações locais de rastreamento de um ramo remoto do controle não serão afetadas. |
326326
| `` e `` | Editar | Edit the selected remote's name or URL. |
327+
| `` 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. |
327328
| `` f `` | Buscar | Fetch updates from the remote repository. This retrieves new commits and branches without merging them into your local branches. |
328329
| `` / `` | Filter the current view by text | |
329330

docs/keybindings/Keybindings_ru.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ _Связки клавиш_
361361
| `` n `` | Добавить новую удалённую ветку | |
362362
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
363363
| `` e `` | Edit | Редактировать удалённый репозитории |
364+
| `` 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. |
364365
| `` f `` | Получить изменения | Получение изменения из удалённого репозитория |
365366
| `` / `` | Filter the current view by text | |
366367

docs/keybindings/Keybindings_zh-CN.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ _图例:`<c-b>` 意味着ctrl+b, `<a-b>意味着Alt+b, `B` 意味着shift+b_
389389
| `` n `` | 添加新的远程仓库 | |
390390
| `` d `` | 删除 | 删除选中的远程。从远程跟踪远程分支的任何本地分支都不会受到影响。 |
391391
| `` e `` | 编辑 | 编辑远程仓库 |
392+
| `` 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. |
392393
| `` f `` | 抓取 | 抓取远程仓库 |
393394
| `` / `` | 通过文本过滤当前视图 | |
394395

docs/keybindings/Keybindings_zh-TW.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,7 @@ _說明:`<c-b>` 表示 Ctrl+B、`<a-b>` 表示 Alt+B,`B`表示 Shift+B
389389
| `` n `` | 新增遠端 | |
390390
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
391391
| `` e `` | 編輯 | 編輯遠端 |
392+
| `` 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. |
392393
| `` f `` | 擷取 | 擷取遠端 |
393394
| `` / `` | 搜尋 | |
394395

0 commit comments

Comments
 (0)