2017-08-07から1日間の記事一覧
間違ってコミットしてしまった場合、ワーキングディレクトリはそのままでコミットだけリセットすることができる。 > git reset --soft HEAD^ HEAD^で直近のコミットを削除できる。
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…
rmfield('structure_name','field_name'): 構造体から、所定のフィールドを削除する関数。 https://jp.mathworks.com/help/matlab/ref/rmfield.html