# CentOS6x系でhttp認証に失敗する

centos6.xのgitバージョンが古すぎてhttp認証でpushできない

```
error: Cannot access URL gitserver, return code 22
fatal: git-http-push failed
```

解決方法は２つ

1. .netrcに以下を追加

```
machine gito.example.org
login hogehoge
password fugafuga
```

<http://d.hatena.ne.jp/torutk/20130127/p1>

1. .git/configのURLにログインユーザ名（hogehoge\@ipadr）を追加


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://yutakatay.gitbook.io/katapedia/doc/centos6xdehttpnisuru.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
