File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,14 +41,14 @@ Features:
41
41
```
42
42
Or download release jars from https://github.com/scm4j/scm4j-vcs-git/releases
43
43
- Code snippet
44
- ``` java
44
+ ```java
45
45
public static final String WORKSPACE_DIR = System.getProperty("java.io.tmpdir") + "git-workspaces";
46
46
IVCSWorkspace workspace = new VCSWorkspace(WORKSPACE_DIR);
47
47
String repoUrl = "https://github.com/MyUser/MyRepo";
48
48
IVCSRepositoryWorkspace repoWorkspace = workspace.getVCSRepositoryWorkspace(repoUrl);
49
49
IVCS vcs = new GitVCS(repoWorkspace);
50
50
vcs.setCredentials("user", "password"); // if necessary
51
- ```
51
+ ```
52
52
- Use methods of ` IVCS ` interface. See [ scm4j-vcs-api] ( https://github.com/scm4j/scm4j-vcs-api ) for details
53
53
- Use ` vcs.setProxy() ` and ` vcs.setCredentials() ` if necessary
54
54
You can’t perform that action at this time.
0 commit comments