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

Documentation for jj git push is missing important details #3672

Open
wmjdgla opened this issue May 12, 2024 · 1 comment
Open

Documentation for jj git push is missing important details #3672

wmjdgla opened this issue May 12, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@wmjdgla
Copy link

wmjdgla commented May 12, 2024

https://martinvonz.github.io/jj/v0.16.0/cli-reference/#jj-git-push

Push to a Git remote

By default, pushes any branches pointing to remote_branches(remote=)..@.

However, I only found out about following details on the command elsewhere:
https://martinvonz.github.io/jj/v0.16.0/github/#using-a-named-branch
The example shows that the command pushes all commits in the current branch, up to and including the commit that has the branch name. All commits after that are ignored.

https://martinvonz.github.io/jj/v0.16.0/github/#rewriting-commits
Here, it shows that any commit to be pushed that are different from those on remote are force pushed.

@PhilipMetzger PhilipMetzger added the documentation Improvements or additions to documentation label May 12, 2024
@martinvonz
Copy link
Owner

I think the help text actually includes those details, but I agree that it could elaborate a bit.

FYI, you can try jj log -r remote_branches(remote=origin)..@ (assuming your remote is called "origin") before pushing next time to see which commits that revset resolves to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

3 participants