目指せ!!full stack developer

一生プログラマーのままに生きたい

git コマンド

まず、以下の4つの領域

f:id:genmanabu:20160901052722p:plain

Remote:サーバー上のrepository

Repository:ローカル上のrepository

Index(stage):一時保管領

workspace:ワークスペース

 

現在gitの設定

git config --list

ワークスペースからstageへ

git add <file>

git add .   // 全ディレクト

stageからrepository

git commit -m "コミット理由など"

repositoryからremote

git push

サーバーと同期する

git pull

 

repositoryからstageへ

git reset <file>

stageからworkspaceへ

git checkout <file>