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

gp: run git fetch before git push or git pull #490

Merged
merged 2 commits into from May 14, 2023
Merged

Conversation

fj0r
Copy link
Contributor

@fj0r fj0r commented May 13, 2023

After testing, I found that even if git fetch is executed locally,
when remote repository changed, local repository does not know.

In general scenarios, after the local update, the local will display ahead. When you push, the remote changes during the period, and you will be prompted to pull first.

However, gp does not work in this mode, so git fetch must be used first to get the information.
The problem with this is that one request becomes two requests.
But the problem is not too serious, I will look into whether there are other solutions.

modules/git/git-v2.nu Outdated Show resolved Hide resolved
Copy link
Member

@amtoine amtoine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@fdncred fdncred merged commit 194eb30 into nushell:main May 14, 2023
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

Successfully merging this pull request may close these issues.

None yet

4 participants