5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

GitHubのプルリクエストにきれいな差分表示を付ける

Last updated at Posted at 2022-01-06

コード

Markdownのコードブロックにdiffを付ければ表示できます。
差分には「-」と「+」を付けましょう

```diff
- gem 'rubocop', require: false
+ gem 'rubocop'
```

表示例

Image from Gyazo

なんとなくやってみたら思ったように動いてむっちゃ嬉しかった。

5
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?