現在Git for Windows(msysgit)の最新バージョンは「1.8.0」です(2013/1/17現在) 現在TortoiseGitの最新バージョンは「1.7.15.0」です(2013/1/17現在)
まずはコマンドラインで動くWindows用のGitをインストールします。
WindowsのGUIで操作できる「TortoiseGit」というソフトはこれが入っていないと動きませんのでコマンドラインで使わないとしても必ずインストールする必要があります。
#ref(): File not found: "GitInstall001.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall002.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall003.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall004.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall005.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall006.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall007.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall008.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall009.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall010.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
Checkout Windows-style, commit Unix-style line endings (チェックアウト時CR+LF、コミット時LFにする) Checkout as-is, commit Unix-style line endings (コミット時LFにする) Checkout as-is, commit as-is (そのままコミット・チェックアウト)
#ref(): File not found: "GitInstall011.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall012.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall013.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "GitInstall014.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
ssh-keygen -t rsa
Generating public/private rsa key pair. Enter file in which to save the key (/c/Users/(ユーザーID)/.ssh/id_rsa):※ここで好きなファイル名を入力する事が出来ますが、そうした場合は何故か「.ssh」フォルダが作られません
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
C:\Users\(ユーザー名)\.ssh\ C:\Documents and Settings\(ユーザー名)\.ssh\※ファイル名を指定した場合は以下のフォルダに生成されます
C:\Users\(ユーザー名)\ C:\Documents and Settings\(ユーザー名)\
#ref(): File not found: "TortoiseGitInstall001.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall002.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall003.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall004.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall005.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall006.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall007.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall008.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall009.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall010.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall011.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall012.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall013.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall014.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall015.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall016.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "TortoiseGitInstall017.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate001.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate002.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate003.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate004.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate005.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate006.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate007.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate008.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate009.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate010.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate011.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate012.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate013.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate014.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
#ref(): File not found: "OpenSSH_PuttyPublicKeyCreate015.png" at page "Git/Windowsで使う(msysgit・TortoiseGit)"
まず運用の方法を選択する必要があります
運用の方法は大きく分けて以下の3種類があります
ここでは、Gitの特徴であるリポジトリを分散して使える「リモートリポジトリ」と「Bareリポジトリ」の2つのみ説明します
インターネット上のサーバーを借りて自分でGitのリモートリポジトリ環境を構築する事も出来ますが、それよりも既存のWebサービスでGitのリモートリポジトリを作成・管理してくれる所を利用する方が早いです
おすすめは以下の4つ
リモートリポジトリの作成方法は各サイトで確認して下さい
ちなみに私は「Bitbucket」を使っています→Git/Bitbucketのリモートリポジトリを使う
まずは「Bereリポジトリ」を作成します。
次にクローンを行い「ローカルリポジトリ&ワークツリー」を作成します
Add 追加