- count the difference between two branch commits
git rev-list --count master..origin/master
git rev-list --count master..origin/master
gradle clean build --refresh-dependencies| Maven Scope | Maven Dependency Declaration | Gradle Configuration | Gradle Dependency Declaration |
|---|---|---|---|
| compile | <scope>compile</scope> |
implementation | implementation 'groupId:artifactId:version' |
| provided | <scope>provided</scope> |
compileOnly | compileOnly 'groupId:artifactId:version' |
| runtime | <scope>runtime</scope> |
runtimeOnly | runtimeOnly 'groupId:artifactId:version' |
| test | <scope>test</scope> |
testImplementation | testImplementation 'groupId:artifactId:version' |
| te |
| Use-Case 1: | |
| Creating a file without the help of touch or any text editor | |
| $cat << EOF >> file_name | |
| line-1 contains the plain text | |
| line-2 contains Arithmetic expansion $(( 2 + 3)) | |
| line-3 contains Parameter expansion $SHELL | |
| line-4 contains Command substitution $(echo "Hi, There") | |
| EOF | |
| Output: |
| import java.io.IOException; | |
| import java.net.URLClassLoader; | |
| import java.nio.file.Files; | |
| import java.nio.file.Paths; | |
| import java.nio.file.Path; | |
| /** | |
| * Example demonstrating a ClassLoader leak. | |
| * | |
| * <p>To see it in action, copy this file to a temp directory somewhere, |