Skip to content

Instantly share code, notes, and snippets.

View razerdp's full-sized avatar
😀
Happy

Razerdp razerdp

😀
Happy
  • Netease
  • Guangzhou,China
View GitHub Profile
@razerdp
razerdp / git_diff.md
Created June 7, 2018 08:03 — forked from jhjguxin/git_diff.md
Git diff 比较不同版本的差异

Git 比较不同版本文件差异的常用命令格式:

git diff                                       查看尚未暂存的文件更新了哪些部分

git diff filename 查看尚未暂存的某个文件更新了哪些

git diff –cached                    查看已经暂存起来的文件和上次提交的版本之间的差异

git diff –cached filename 查看已经暂存起来的某个文件和上次提交的版本之间的差异
@razerdp
razerdp / DividerItemDecoration.java
Last active August 29, 2015 14:25 — forked from alexfu/DividerItemDecoration.java
An ItemDecoration that draws dividers between items. Pulled from Android support demos.
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software