Gitの使用方法を解説
Gitアカウント
最近のプロジェクトではマストなgit.hubを使用する方法を解説します。
まずは、github.comでアカウントを作成しましょう。
https://github.com/
クライアウトソフト
クライアウトソフトにはsourcetreeを使用します。
お好みにより好きなクライアントソフトを使用する事ができます。
Gitがインストールされているか確認
` git --version `
すべてのファイルと変更をステージング領域に追加
` git add `
ファイルのコミット
first commitという名前でcommitされる
` git commit -m "first commit" `
masterにpushする
first commitという名前でcommitされる
` git push -u origin master `
リポジトリを作成する
` cd <リポジトリを作成するディレクトリ> git init `
リポジトリの複製を作る
` git clone <複製したいリポジトリのURL> git init `
Comments