Skip to content

Commit b9f5c84

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 011ff85 commit b9f5c84

File tree

14 files changed

+164
-20
lines changed

14 files changed

+164
-20
lines changed

docs/Config.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,7 @@ keybinding:
639639
pushTag: P
640640
setUpstream: u
641641
fetchRemote: f
642+
AddForkRemote: F
642643
sortOrder: s
643644
worktrees:
644645
viewWorktreeOptions: w

docs/keybindings/Keybindings_en.md

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

docs/keybindings/Keybindings_ja.md

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

docs/keybindings/Keybindings_ko.md

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

docs/keybindings/Keybindings_nl.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ _Legend: `<c-b>` means ctrl+b, `<a-b>` means alt+b, `B` means shift+b_
286286
| `` n `` | Voeg een nieuwe remote toe | |
287287
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
288288
| `` e `` | Edit | Wijzig remote |
289+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL. |
289290
| `` f `` | Fetch | Fetch remote |
290291
| `` / `` | Filter the current view by text | |
291292

docs/keybindings/Keybindings_pl.md

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

docs/keybindings/Keybindings_pt.md

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

docs/keybindings/Keybindings_ru.md

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

docs/keybindings/Keybindings_zh-CN.md

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

docs/keybindings/Keybindings_zh-TW.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -382,6 +382,7 @@ _說明:`<c-b>` 表示 Ctrl+B、`<a-b>` 表示 Alt+B,`B`表示 Shift+B
382382
| `` n `` | 新增遠端 | |
383383
| `` d `` | Remove | Remove the selected remote. Any local branches tracking a remote branch from the remote will be unaffected. |
384384
| `` e `` | 編輯 | 編輯遠端 |
385+
| `` F `` | Add fork remote | Quickly add a fork remote by replacing the owner in the origin URL. |
385386
| `` f `` | 擷取 | 擷取遠端 |
386387
| `` / `` | 搜尋 | |
387388

0 commit comments

Comments
 (0)