jesseduffield / jesseduffield/lazygit

Add `upstream` remote from GitHub/GitLab

Open
#1,508 3 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

**Is your feature request related to a problem? Please describe.**

I'm always frustrated when I need to rebase against the parent and have no upsteam remote in my clone.

**Describe the solution you'd like**

In remotes menu press (a)dd (u)pstream to detect if the repo is a GitLab/GitHub fork and add `upstream` remote.

**Additional context**

Current shortcut for adding remote is (n)ew, which is not intuitive, because plain git uses `git remote add` with no (n) letters. I don't know if renaming or deprecating it is possible.

An alternative is to use (u) shortcut for upstream.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.