GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing infra.apache.org — Getting started with Git - Apache Infrastructure Website Getting started with GitThis document is a primer on using Git for an Apache Software Foundation project. Contents
Repository types¶There are two forms of Git repositories:
This document is chiefly about the read/write repositories. Public and private repositories¶Projects can set up as many public repositories as their development work requires, using SelfServe. Each project can also have a private repository space for working on sensitive issues such as:
The private repository is not for uses such as project code development not related to a security issue. In particular, the resources available to run GitHub Actions against private repo code are extremely limited, so use for CI must be kept to the absolute bare minimum. See the Project Code Repository Policy for further details. Open a Jira ticket for Infra to request a private repository. Repository checkout¶The repository URLs are all of the form:
Cloning a repository
Using .asf.yaml¶
For details on how .asf.yaml can help you manage your GitHub settings, see github.com/apache/infrastructure-asfyaml/edit/main/README.md. Committers: getting started¶Set up your name and email that Git will use when you make commits:
If you're a long-time GitHub user you can set these configuration variables on a per-repository basis:
You can also add your To push to a repository you need to authenticate. More recent versions of Git prompt for a user name and password, and in some cases will cache the credentials in your operating system's default credential store. On Mac OS X, you need to have
If you do not see an authentication prompt, you need to set up a
You can list your user name in the Git repository URL, but this requires that you provide your password for every fetch and push. You can simplify this step by cloning a URL like:
While it's possible to list your password in the URL, we discourage this practice as it leaves your password in plain text in the shell history. Windows users¶You can use Instead of setting up a
Line endings¶In general, you should normalize line endings in the Git repository and set them to be platform specific on checkout.
Further details and attributes for handling line endings differently per file type are available at Configuring Git to handle line endings. Troubleshooting¶no DAV lockingIf you get an error like this:
It means that you're trying to push over HTTP, which is disabled. To fix this error change the remote repository URL to use HTTPS. You can edit the
Further reading¶
Copyright 2026, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. |
| 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. |