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

How about using git fetch instead? #11

Closed
rofrol opened this issue Dec 1, 2021 · 2 comments
Closed

How about using git fetch instead? #11

rofrol opened this issue Dec 1, 2021 · 2 comments
Assignees

Comments

@rofrol
Copy link

rofrol commented Dec 1, 2021

for example this is how I update default branch without switching to it:

git fetch -f . "$REMOTE_AND_BRANCH":"$BRANCH"

or with the script git fm

Source https://github.com/rofrol/dotfiles/blob/master/bin/git-fm

@siedentop
Copy link
Owner

Hi @rofrol ,

thanks for taking the time to report a possible improvement.

Thanks for the suggestion to use git fetch to get the default branch!

I'd like to avoid a remote call for the git operation. But maybe I can cache this information.

I'll think about it and come back to this.

Best regards, Christoph

@siedentop siedentop self-assigned this Jan 31, 2022
@rofrol
Copy link
Author

rofrol commented Feb 1, 2022

but this is local call git fetch -f . when using dot .

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