-
Notifications
You must be signed in to change notification settings - Fork 288
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
Add the ability to force push a branch. #97
Conversation
1ed712d
to
b9ddcb7
Compare
# switch back to master | ||
git -C $repo1 checkout master | ||
|
||
test "$(git config --global core.pager)" == 'true' |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
git push --tags push-target HEAD:refs/heads/$branch --force | ||
else | ||
git push --tags push-target HEAD:refs/heads/$branch | ||
fi | ||
} | ||
|
||
push_tags() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
local ref=$(make_commit $repo2) | ||
make_commit $repo1 | ||
# cannot push to repo while it's checked out to a branch | ||
git -C $repo1 checkout refs/heads/master |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
b9ddcb7
to
46ee698
Compare
Add the 'force' option to the put script allowing the user to force the branch to be pushed to the remote. Signed-off-by: Tom Charles <tcharles@pivotal.io>
Hi there! We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created. The current status is as follows:
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes. |
46ee698
to
ba08ef0
Compare
We tried to address all of the issues you had. would you take a look at it again? |
looks great, thanks a bunch! |
Add the 'force' option to the put script allowing the user to force
the branch to be pushed to the remote.