上野家のホームページ
ナーマル,マリン,ココ
[
新規
|
一覧
|
検索
|
最新
|
ヘルプ
]
開発/バージョン管理システム/git/Gitのインストール
をテンプレートにして作成
資料室
開発/バージョン管理システム/git/Gitのインストール をテンプレートにして作成
[
差分
|
バックアップ
|
リロード
]
[ ]
開始行:
* Gitのインストール
Gitはクライアント・サーバー型のシステムではなく,単純なス...
つまりGitプログラムから,直接ローカルやリモートのリポジト...
リモートリポジトリを運用する時に,リポジトリ(ファイル)...
このためリモートリポジトリを提供するファイルサーバー側に...
これは,EXCELのワークシートも共有ファイルとしてネットワー...
Git向けの情報サイト(ホスティングサービスなど)を構築した...
** Windowsの場合
WindowsマシンでGitをインストールする場合いくつかあるが,...
ちなみにMicrosoftのVisual Studio 2013以降にはGitがビルト...
*** Git for Windowsのインストール
[[Git for Windows>https://gitforwindows.org/]]はWindows用...
[[Git for Windowsのホームページ>https://git-for-windows.g...
ダウンロードしたGit-x.xx.x-32-bit.exe(32bit Windows用)...
- bashコンソールを使う人はAdditional iconsを選んだほうが...
- Windows Explore integrationはマークしても害はないが,To...
- 他の設定も余計なお世話なんでオフを推奨。(お好みだが・...
次のAdjusting your PATH environment設定を,Run Git from t...
この設定はPATH環境変数に対するもので,以下の場所をPATHに...
- <Gitのディレクトリ>\cmd\~
- <Gitのディレクトリ>\bin\~
上記の設定をすると,<Gitのディレクトリ>\cmd\ がシステム...
インストールが終わったら,動作を確認してみます。
D:\home\ueno> git --version
git version 2.7.0.windows.1
このようにバージョンが表示されればインストール完了。
*** TortoiseGitのインストール
TortoiseGitはGitのクライアントツールで,Windowsのシェルエ...
WindowsのエクスプローラーからGit for Windowsの機能をマウ...
Subversion用のTortoiseSVNを利用したことがある人は,似たよ...
TortoiseGitを使用するにはGit for Windowsがインストールさ...
[[TortoiseGitの公式サイト>https://code.google.com/p/torto...
インストラーをクリックして実行すればインストールできる。...
** Linuxの場合
ほとんどのLinuxディストリビューションでは,Gitはパッケー...
最初からデフォルトでインストールされている場合もある。~
CentOSなんかだと,
# yum install git
としてインストールできる。~
* 環境設定
Gitのインストール後git configコマンドを使って,gitの環境...
gitの環境設定ファイルは,環境に応じ3つの場所に置かれる。
|設定ファイルの場所 ...
|/etc/gitconfig(Linux)&br;[gitインストール先]\etc\gitco...
|${HOME}/.gitconfig(Linux)&br;C:\Users\$USER\...
|gitリポジトリ\.git/config ...
通常は,''--global''オプションを使って設定しておけば良い...
$ git config --global user.name "Yuji Ueno" #...
$ git config --global user.email yuji@yueno.net #...
$ git config --global color.ui auto #...
$ git config --list
color.ui=auto
user.name=Yuji Ueno
user.email=yuji@yueno.net
日本語の文字化け対策も設定しておく。~
$ git config --global core.quotepath false
Gitが改行コードを自動変換するのを無効にしておいたほうがい...
$ git config --global core.autocrlf false
また,pushコマンド時にブランチ名やタグ名を指定しない場合...
$ git config --global push.default upstream
そして,コミット時のコメントを編集するエディタを好みのテ...
Git for Windowsではコミット時のコメントを編集する時,ディ...
ただこのvimでは,日本語が表示や編集がうまく出来ない問題が...
なので好みのテキストエディタを使えるようにしておいたほう...
私はサクラエディタを使っています。(-CODE=4は,UTF-8で編...
$ git config --global core.editor "'c:/WinApl/sakura/sak...
設定には,Git全体の設定(--global),ワークディレクトリの...
C:\home\ueno> git config --global --list
user.name=Yuji Ueno
user.email=yuji@yueno.net
color.ui=auto
core.quotepath=false
core.autocrlf=false
core.editor='c:/WinApl/sakura/sakura.exe' -CODE=4
push.default=upstream
winupdater.recentlyseenversion=2.47.0.windows.2
C:\home\ueno\gittest> git config --local --list
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=//u3/yuji/gitrepo/hogehoge.git/
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
C:\home\ueno\gittest> git config --system --list
http.sslcainfo=C:/WinApl/Git/mingw64/etc/ssl/certs/ca-bu...
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=false
core.symlinks=false
pull.rebase=false
init.defaultbranch=master
C:\home\ueno\gittest> git config --list
http.sslcainfo=C:/WinApl/Git/mingw64/etc/ssl/certs/ca-bu...
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=false
core.symlinks=false
pull.rebase=false
init.defaultbranch=master
user.name=Yuji Ueno
user.email=yuji@yueno.net
color.ui=auto
core.quotepath=false
core.autocrlf=false
core.editor='c:/WinApl/sakura/sakura.exe' -CODE=4
push.default=upstream
winupdater.recentlyseenversion=2.47.0.windows.2
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=ssh://u3_yueno:/var/www/git/test.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
で確認できる。
終了行:
* Gitのインストール
Gitはクライアント・サーバー型のシステムではなく,単純なス...
つまりGitプログラムから,直接ローカルやリモートのリポジト...
リモートリポジトリを運用する時に,リポジトリ(ファイル)...
このためリモートリポジトリを提供するファイルサーバー側に...
これは,EXCELのワークシートも共有ファイルとしてネットワー...
Git向けの情報サイト(ホスティングサービスなど)を構築した...
** Windowsの場合
WindowsマシンでGitをインストールする場合いくつかあるが,...
ちなみにMicrosoftのVisual Studio 2013以降にはGitがビルト...
*** Git for Windowsのインストール
[[Git for Windows>https://gitforwindows.org/]]はWindows用...
[[Git for Windowsのホームページ>https://git-for-windows.g...
ダウンロードしたGit-x.xx.x-32-bit.exe(32bit Windows用)...
- bashコンソールを使う人はAdditional iconsを選んだほうが...
- Windows Explore integrationはマークしても害はないが,To...
- 他の設定も余計なお世話なんでオフを推奨。(お好みだが・...
次のAdjusting your PATH environment設定を,Run Git from t...
この設定はPATH環境変数に対するもので,以下の場所をPATHに...
- <Gitのディレクトリ>\cmd\~
- <Gitのディレクトリ>\bin\~
上記の設定をすると,<Gitのディレクトリ>\cmd\ がシステム...
インストールが終わったら,動作を確認してみます。
D:\home\ueno> git --version
git version 2.7.0.windows.1
このようにバージョンが表示されればインストール完了。
*** TortoiseGitのインストール
TortoiseGitはGitのクライアントツールで,Windowsのシェルエ...
WindowsのエクスプローラーからGit for Windowsの機能をマウ...
Subversion用のTortoiseSVNを利用したことがある人は,似たよ...
TortoiseGitを使用するにはGit for Windowsがインストールさ...
[[TortoiseGitの公式サイト>https://code.google.com/p/torto...
インストラーをクリックして実行すればインストールできる。...
** Linuxの場合
ほとんどのLinuxディストリビューションでは,Gitはパッケー...
最初からデフォルトでインストールされている場合もある。~
CentOSなんかだと,
# yum install git
としてインストールできる。~
* 環境設定
Gitのインストール後git configコマンドを使って,gitの環境...
gitの環境設定ファイルは,環境に応じ3つの場所に置かれる。
|設定ファイルの場所 ...
|/etc/gitconfig(Linux)&br;[gitインストール先]\etc\gitco...
|${HOME}/.gitconfig(Linux)&br;C:\Users\$USER\...
|gitリポジトリ\.git/config ...
通常は,''--global''オプションを使って設定しておけば良い...
$ git config --global user.name "Yuji Ueno" #...
$ git config --global user.email yuji@yueno.net #...
$ git config --global color.ui auto #...
$ git config --list
color.ui=auto
user.name=Yuji Ueno
user.email=yuji@yueno.net
日本語の文字化け対策も設定しておく。~
$ git config --global core.quotepath false
Gitが改行コードを自動変換するのを無効にしておいたほうがい...
$ git config --global core.autocrlf false
また,pushコマンド時にブランチ名やタグ名を指定しない場合...
$ git config --global push.default upstream
そして,コミット時のコメントを編集するエディタを好みのテ...
Git for Windowsではコミット時のコメントを編集する時,ディ...
ただこのvimでは,日本語が表示や編集がうまく出来ない問題が...
なので好みのテキストエディタを使えるようにしておいたほう...
私はサクラエディタを使っています。(-CODE=4は,UTF-8で編...
$ git config --global core.editor "'c:/WinApl/sakura/sak...
設定には,Git全体の設定(--global),ワークディレクトリの...
C:\home\ueno> git config --global --list
user.name=Yuji Ueno
user.email=yuji@yueno.net
color.ui=auto
core.quotepath=false
core.autocrlf=false
core.editor='c:/WinApl/sakura/sakura.exe' -CODE=4
push.default=upstream
winupdater.recentlyseenversion=2.47.0.windows.2
C:\home\ueno\gittest> git config --local --list
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=//u3/yuji/gitrepo/hogehoge.git/
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
C:\home\ueno\gittest> git config --system --list
http.sslcainfo=C:/WinApl/Git/mingw64/etc/ssl/certs/ca-bu...
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=false
core.symlinks=false
pull.rebase=false
init.defaultbranch=master
C:\home\ueno\gittest> git config --list
http.sslcainfo=C:/WinApl/Git/mingw64/etc/ssl/certs/ca-bu...
http.sslbackend=openssl
diff.astextplain.textconv=astextplain
filter.lfs.clean=git-lfs clean -- %f
filter.lfs.smudge=git-lfs smudge -- %f
filter.lfs.process=git-lfs filter-process
filter.lfs.required=true
core.autocrlf=false
core.symlinks=false
pull.rebase=false
init.defaultbranch=master
user.name=Yuji Ueno
user.email=yuji@yueno.net
color.ui=auto
core.quotepath=false
core.autocrlf=false
core.editor='c:/WinApl/sakura/sakura.exe' -CODE=4
push.default=upstream
winupdater.recentlyseenversion=2.47.0.windows.2
core.repositoryformatversion=0
core.filemode=false
core.bare=false
core.logallrefupdates=true
core.symlinks=false
core.ignorecase=true
core.hidedotfiles=dotGitOnly
remote.origin.url=ssh://u3_yueno:/var/www/git/test.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
branch.master.remote=origin
branch.master.merge=refs/heads/master
で確認できる。
ページ名:
Counter: 0, today: 0, yesterday: 0
Copyright©2008 Yuji Ueno All Rights Reserved.
ログイン
ユーザ名:
パスワード:
IDとパスワードを記憶
パスワード紛失
メインメニュー
ホーム
でぶlog
資料室
最新ページ一覧
全ページ一覧
ヘルプ
フォーラム
お問い合わせ