Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make merge base more easily configurable per repo #8

Closed
goodevilgenius opened this issue Jun 1, 2020 · 1 comment
Closed

Make merge base more easily configurable per repo #8

goodevilgenius opened this issue Jun 1, 2020 · 1 comment

Comments

@goodevilgenius
Copy link

goodevilgenius commented Jun 1, 2020

Almost every command in git fuzzy results in the following error when first installed:

fatal: ref refs/remotes/origin/HEAD is not a symbolic ref

Upon reviewing the README, I realized that this is configurable using an environment variable.

Using an environment variable requires this change to be made within the shell (or .bashrc, for example), and makes it very difficult to have it set differently for different repos.

I suggest instead using a git config value.

E.g.:

git config gf.remote upstream
git config gf.branch main

This allows you to have a single global value set, and then override it on a repo-specific basis. Additionaly, it keeps git configuration within git, rather than having it within the shell.

@goodevilgenius goodevilgenius changed the title Don't assume remote is called origin Make merge base more easily configurable per repo Jun 1, 2020
@bigH
Copy link
Owner

bigH commented Feb 13, 2021

i agree that the git config values would be a better place to get these 🤦

in the meanwhile, you can set these project-specific settings here: https://github.com/bigH/git-fuzzy#project-specific-settings

this script simply gets sourced if you call git fuzzy from that directory.

@bigH bigH closed this as completed Feb 13, 2021
@bigH bigH reopened this Feb 13, 2021
@bigH bigH closed this as completed Feb 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants