ホーム » git » git ファイルの追加

git ファイルの追加

プロジェクトディレクトリ以下にファイルを追加した時は以下の操作でリモートのレポジトリに反映する

ファイルをインデックスに追加
[code]
git add .
[/code]

特定のファイルのみを追加
[code]
git add ファイル名
[/code]

インデックスに追加されたファイルをローカルレポジトリにcommit
[code]
git commit -m "コメント"
[/code]

リモートレポジトリに反映

[code]
git push origin master
Enter passphrase for key ‘/c/Users/tarumi/.ssh/id_rsa’:SSLキーのパスワードを入力
[/code]