Takuya Miyashita
This site
Web
Start:
*Gitのインストール [#v9e0dde1]
**apt, apt-get [#p2f8e927]
普通の人は~
最新の Git でなければダメ… とか,~
configure でいろいろカスタムしたい…~
という状況にはならないので,apt で十分.
#codeprettify{{
sudo apt install git
}}
**ソースからビルド [#m941dce1]
なんとなくソースを使ってインストールしたかった場合.~
事前に必要なものをインストールしておく.~
#codeprettify{{
sudo apt install autoconf asciidoc
}}
zlibのインストールも必要だった.~
次に,GitHub のソースから clone してくるか,適当なバージ...
当然 clone をするにはGitがインストールされている必要があ...
-GitHubから
#codeprettify{{
# リポジトリがローカル環境にないときは
git clone git://git.kernel.org/pub/scm/git/git.git
# git clone https://github.com/git/git
cd git
}}
#codeprettify{{
# リポジトリがあるときは
git fetch
}}
リポジトリを更新したら,最新バージョンのタグに checkout ...
#codeprettify{{
git checkout v2.18.0
}}
-アーカイブから(例)
#codeprettify{{
wget https://mirrors.edge.kernel.org/pub/software/scm/git...
tar -zxf git-2.18.0.tar.gz
cd git-2.18.0
}}
あとはいつもの.初期状態では configure がないので make co...
#codeprettify{{
make configure
./configure --prefix=/usr/local --with-curl
make all
sudo make install
}}
README を読むと configure を使わなくてもできるらしい.~
ただし,--with-curl をつけて ./configure をしないと,git ...
#codeprettify{{
$ git clone https://github.com/hogehoge/foobar
fatal: Unable to find remote helper for 'https'
}}
となり https 等から一切 clone ができなかった.
End:
*Gitのインストール [#v9e0dde1]
**apt, apt-get [#p2f8e927]
普通の人は~
最新の Git でなければダメ… とか,~
configure でいろいろカスタムしたい…~
という状況にはならないので,apt で十分.
#codeprettify{{
sudo apt install git
}}
**ソースからビルド [#m941dce1]
なんとなくソースを使ってインストールしたかった場合.~
事前に必要なものをインストールしておく.~
#codeprettify{{
sudo apt install autoconf asciidoc
}}
zlibのインストールも必要だった.~
次に,GitHub のソースから clone してくるか,適当なバージ...
当然 clone をするにはGitがインストールされている必要があ...
-GitHubから
#codeprettify{{
# リポジトリがローカル環境にないときは
git clone git://git.kernel.org/pub/scm/git/git.git
# git clone https://github.com/git/git
cd git
}}
#codeprettify{{
# リポジトリがあるときは
git fetch
}}
リポジトリを更新したら,最新バージョンのタグに checkout ...
#codeprettify{{
git checkout v2.18.0
}}
-アーカイブから(例)
#codeprettify{{
wget https://mirrors.edge.kernel.org/pub/software/scm/git...
tar -zxf git-2.18.0.tar.gz
cd git-2.18.0
}}
あとはいつもの.初期状態では configure がないので make co...
#codeprettify{{
make configure
./configure --prefix=/usr/local --with-curl
make all
sudo make install
}}
README を読むと configure を使わなくてもできるらしい.~
ただし,--with-curl をつけて ./configure をしないと,git ...
#codeprettify{{
$ git clone https://github.com/hogehoge/foobar
fatal: Unable to find remote helper for 'https'
}}
となり https 等から一切 clone ができなかった.
Page:
Edit with a page name which already exists