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/

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

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

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

git add -a

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

git log

Gitのログが見れます。

git diff HEAD^

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

git status

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

git push origin master

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

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

GitCUI, Git

Posted by bistro