覚え書きブログ

2017-08-07から1日間の記事一覧

gitの覚え書き(commitのリセット)

間違ってコミットしてしまった場合、ワーキングディレクトリはそのままでコミットだけリセットすることができる。 > git reset --soft HEAD^ HEAD^で直近のコミットを削除できる。

gitの覚え書き(stash)

gitでpushしようとすると、remote repositoryの方が新しくて以下のようなエラーがでることがある。 > git push ... error: failed to push some refs to 'https://github.com/hhachiya/xxx' ヒント: Updates were rejected because a pushed branch tip is b…

matlabの覚え書き(rmfield)

rmfield('structure_name','field_name'): 構造体から、所定のフィールドを削除する関数。 https://jp.mathworks.com/help/matlab/ref/rmfield.html