Thank you for your interest in contributing to git.github.io, the community website for Git development, home to the Git Rev News newsletter, Hacking Git, and mentoring program information.
- Ways to Contribute
- Submitting Changes via Pull Request
- Submitting Changes via Email
- Running the Site Locally
- Writing Guidelines
- Code Style
- Git Rev News Newsletter
- Reporting Issues
In general we accept all kind of contributions to all the pages on this website, but here are some suggestions along with a few guidelines:
- Fix typos, broken links, or outdated information across the site (except for already published editions of Git Rev News, which are kept as historical archives). If possible, open a Pull Request (PR) to submit your changes.
- Improve or add content to sections of the website such as the Links page, Mentoring pages, or general documentation (opening a PR is preferred for these as well).
- Add entries or articles to the upcoming edition of the Git Rev News newsletter (see below).
- Improve site infrastructure (CSS, JavaScript, Jekyll layouts, or plugins). Before starting work on major improvements, please check existing issues and open a new issue for discussion first.
- Participate in community discussions by sharing opinions on open issues or reviewing open Pull Requests.
- Report bugs, broken links, or suggestions via GitHub Issues.
- Fork this repository on GitHub.
- Clone your fork locally:
git clone https://github.com/<your-username>/git.github.io.git cd git.github.io
- Create a branch for your changes:
git checkout -b my-fix
- Make your changes, following the Writing Guidelines below.
- Test locally if needed by running the site and verifying your changes look correct. (Note: this is not required for newsletter contributions or small changes like typofixes.)
- Commit with a clear, descriptive message:
For Git Rev News contributions, use the
git add . git commit -m "Brief description of the change"
rn-XXX:prefix for your commit subject (e.g.rn-114: Add link to new Git tutorial). - Push to your fork and open a Pull Request against the
masterbranch of this repository.
Note: Keep PRs focused on a single topic. Avoid mixing unrelated changes (such as infrastructure changes with content updates).
If you prefer not to use GitHub, you can send patches by email to the maintainers:
- Christian Couder: christian.couder@gmail.com
- Kaartic Sivaraam: kaartic.sivaraam+git@gmail.com
You may also CC the Git mailing list at git@vger.kernel.org if appropriate.
This site is built with Jekyll and hosted via GitHub Pages.
Note: Running the site locally is helpful when working on layouts, styles, or general pages, but it is not required when submitting content for Git Rev News editions or sending typofixes and similar small changes.
- Ruby (2.x or later) with development packages
- Bundler
# Install system dependency (Ubuntu/Debian)
sudo apt-get install zlib1g-dev
# Install Bundler gem
sudo gem install bundler
# Clone the repo and install dependencies
git clone https://github.com/git/git.github.io.git
cd git.github.io
bundle install
# Start the local server
bundle exec jekyll serveThen open your browser at http://localhost:4000.
See GitHub Pages documentation for more details.
- Use clear, concise language suitable for a developer audience.
- Write content in Markdown (
.mdor.markdownfiles). - Keep lines wrapped at around 72 characters when possible.
- Use relative links within the site where possible.
- When adding code examples, use fenced code blocks with a language
tag:
Supported languages for syntax highlighting include:
```sh git log --oneline ```sh/bash,c,diff,go,ini,python,ruby,yaml, and others. - Avoid adding unnecessary dependencies or large binary assets.
- JavaScript / CSS: Keep changes minimal and consistent with the
existing style in
script/andcss/. - Jekyll Layouts & Plugins: Changes to
_layouts/,_includes/, or_plugins/should be well-tested locally before submitting. - Gemfile: Do not modify the
Gemfileunless there is a clear, necessary reason, as it is shared and affects all contributors' environments. - Whitespace: Prefer Unix line endings (LF). Avoid trailing whitespace.
The Git Rev News newsletter is published monthly.
Before being published, an upcoming edition is prepared in advance
as a draft Markdown file under rev_news/drafts/ (e.g.
rev_news/drafts/edition-XXX.md). When an edition is published, its
file is moved under _posts/ and renamed (e.g.
_posts/YYYY-MM-DD-edition-XXX.markdown).
You can contribute in several ways:
- Share entries in the edition issue: A dedicated GitHub Issue is
opened for every upcoming edition, titled
"Any comment about upcoming Git Rev News edition XXX"(whereXXXis the edition number; for example, see Issue #860). You can comment directly on that issue with links, articles, tools, or news you would like included. - Submit a Pull Request: Add your entry directly to the draft file
under
rev_news/drafts/for the upcoming edition. Common entries include:- Links and short descriptions for tutorials, articles, or blog posts.
- Recent Git-related releases, tools, or projects.
- Discussions from the Git mailing list.
- Lighthearted Git-related content.
- Submission guidelines: Check the news sources page for more suggestions on finding news items.
- Email: Contact the maintainers via email (see above).
- Do not edit past editions: Already published editions are archived historical records and should not be modified.
- No local testing required: You do not need to install Ruby or build the site locally when submitting newsletter entries.
- Commit prefix: Format your commit message subject starting with
rn-XXX:whereXXXis the edition number (e.g.rn-114: Add link to Git tutorial).
Found a bug, broken link, or outdated content? Please open an issue on GitHub with:
- A clear title describing the problem.
- The URL of the affected page (if applicable).
- Steps to reproduce or a description of what you expected vs. what you saw.
We appreciate every contribution, big or small. Thank you for helping improve the Git community website!