GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing maven.apache.org — Maven Git Convention – Maven Maven Git ConventionThis document describes how developers should use Git. Git ConfigurationFor contributors who are not committersApache git repositories are at To contribute to a Maven component that is maintained in git, please follow these steps:
For committersCommitters may, of course, commit directly to the ASF repositories. For complex changes, you may find it valuable to make a pull request at GitHub to make it easier to collaborate with others. Commit Message TemplateCommits should be focused on one issue at a time, because that makes it easier for others to review the commit. While not mandatory, we will appreciate signed commits. If the changes is linked to an issue, the commit message should use this template:
Where:
eg: Review policyThe Maven project has no strict review policy, but the following practices established:
Committers are invited to also request reviews for trivial changes, because every review can increase code quality. Apply User PatchTo keep the history of contributions clear, the committer should usually apply the patch without any major modifications, and then create his or her own commits for further modifications. However, committers should never commit code to a live branch which is not suitable to release. If a contribution requires significant work to make it useful, commit it to a branch, fix it up, and merge the branch. If the user created a pull request, the committer is responsible for closing that pull request. You do this by adding a note to a commit message:
where NNN is the number of the pull request. Edit Commit Messageto edit last commit comment: WorkflowWorkflow for svn folks is something like :
A more quiet workflow : Other useful Git commands while developingIf you've done a chunk of work, and you would like to ditch your changes and start from scratch use this command to revert to the original checkout:
TODO .gitignore power-git checkoutThis checkout is typical for highly experienced git users, and may serve as inspiration for others; as usual the best way to learn is by doing. Sample shown for maven-surefire Go to https://github.com/apache/maven-surefire and fork surefire to your own GitHub account. Starting with nothing (no existing clone)
(You may consider adding –global to the git config statement above to always fetch pull requests for any remote named “asfgithub”) In this setup, running “git push” will normally push to your personal GitHub account. Furthermore, all pull requests from GitHub are also fetched to your local clone, use
to try to make some sense of it all. This is an important command to understand! (gitk may need to be installed additionally) gitk also has a quite excellent context menu that is far more context sensitive than most people realize at first impression. Right-clicking on a commit in a GitHub pull-request will allow you to cherry-pick straight in the gui. If you're working on the master branch, you can do stuff like this:
Using your GitHub account as a storage for half-finished work is excellent if you switch between multiple computers, always push to GitHub before leaving your current computer and start by pulling at the next computer. To merge a pull request
Or if you're comfortable rebasing; |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |