You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i like the idea, but i wish there was some way to say 'i dont care if there is no commit, either dont commit something or commit an empty message and then push' maybe a 'sync' button
The text was updated successfully, but these errors were encountered:
It was confusing for me as well, that if there is nothing to commit but to push, that this action fails.
Here, the only way is to deliberately add a new change and press commit&push again
It also shows as failed if nothing is to commit and nothing to push:
This message is annoying, because it is not an error.
My expected behavior would be:
If there is nothing to commit, say that as a success message and proceed to push
If there is nothing to push, say that as a success message and exit
maybe it helps to run git diff --cached --exit-code before calling git commit. If it returns a non-zero status, there is something staged but not yet commit.
If git commit is called without anything staged it will return exit code 1 - which is however misleading in this case.
i like the idea, but i wish there was some way to say 'i dont care if there is no commit, either dont commit something or commit an empty message and then push' maybe a 'sync' button
The text was updated successfully, but these errors were encountered: