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

git work pr update #5

Open
mdbs99 opened this issue Aug 4, 2017 · 0 comments
Open

git work pr update #5

mdbs99 opened this issue Aug 4, 2017 · 0 comments

Comments

@mdbs99
Copy link
Owner

mdbs99 commented Aug 4, 2017

Let's create a new command option: pr update
This command should update the current pr.
When the contributor updates his PR and it wasn't merged into master yet, we need to update the local pr to continue working.

The commands should be:

git fetch origin pull/<id>/head
git merge pull/<id>/head

The script needs to check if the current branch is a PR by prefix pr. Otherwise, the user gets an error.

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

1 participant