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

doc: Document forced pushing with git #1420

Closed
wants to merge 5 commits into from

Conversation

jbergstroem
Copy link
Member

Mention that we generally disallow forced pushes but allow it in trivial cases within 10 minutes of the original push.

Refs #1355

With git, there's a way to override remote trees by force pushing
(`git push -f`). This should generally be seen as forbidden (since
you're rewriting history on a repository other people are working
against) but is allowed for simpler slip-ups such as typo's in commit
Copy link
Member

Choose a reason for hiding this comment

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

*typos

@rvagg
Copy link
Member

rvagg commented Apr 14, 2015

@jbergstroem also perhaps worth adding "as long as nobody else has pushed to the repo in the meantime" or words to that effect.

worth bringing attention to @iojs/tc, this introduces a policy of allowing force pushes for a period of 10 minutes after your push for simple fixes such as commit message typos

@jbergstroem
Copy link
Member Author

@rvagg added a note about it and fixed the typo's (ha ha).

@rvagg
Copy link
Member

rvagg commented Apr 14, 2015

lgtm

@mscdex mscdex added the doc Issues and PRs related to the documentations. label Apr 14, 2015
(`git push -f`). This should generally be seen as forbidden (since
you're rewriting history on a repository other people are working
against) but is allowed for simpler slip-ups such as typos in commit
messages. You are only allowed to force push to any io.js branch
Copy link
Contributor

Choose a reason for hiding this comment

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

"However, you are only allowed"

@Fishrock123
Copy link
Contributor

LGTM otherwise

@silverwind
Copy link
Contributor

LGTM too, I'm guilty of this.

Mention that we generally disallow forced pushes but allow it
in trivial cases within 10 minutes of the original push.
@jbergstroem
Copy link
Member Author

Updated and rebased including all suggestions.

@shigeki
Copy link
Contributor

shigeki commented Apr 15, 2015

Thanks. It is very helpful.

jbergstroem added a commit that referenced this pull request Apr 16, 2015
Mention that we generally disallow forced pushes but allow it
in trivial cases within 10 minutes of the original push unless
the branch pushed to already has new commits.

PR-URL: #1420
Reviewed-By: Rod Vagg <[email protected]>
Reviewed-By: Jeremiah Senkpiel <[email protected]>
Reviewed-By: Roman Reiss <[email protected]>
@jbergstroem
Copy link
Member Author

Merged in 76f219c. Thanks for the feedback and review, people.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc Issues and PRs related to the documentations.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants