Warning: Trying to access array offset on value of type bool in /home/web13c/bistro.site/public_html/wp-content/themes/luxeritas/inc/json-ld.php on line 120

Git教えてもろた

ここで自分のリポジトリを作りました。
https://bitbucket.org/

そして基本コマンドをメモっておきます。

1
git commit -m 'test comment'
1
git commit -am 'test comment'

コメント付きでローカルにコミットします。

1
git add -a

Vimモードになりますがコメント付きでローカルにコミットします。
Vimモードは「i」でinsertモード(書き込み可能)「Escキー」で編集終了、「:w」で保存して「:q」で閉じます。

1
git log

Gitのログが見れます。

1
git diff HEAD^

ファイルの差分が見れます。

1
git status

これで現在のGitディレクトリの状態を見れます。

1
git push origin master

これでリモートにコミット。

もうちょっといじって練習してみます。

GitCUI, Git

Posted by bistro