Git
Node: git · Full type: n8n-nodes-base.git · Version: 1.1
Credentials
gitPassword (alias: @git)
CREDENTIAL @git = gitPassword "My Git"
Operations
add
| Parameter |
Type |
Default |
Details |
pathsToAdd |
string |
"" |
required |
addConfig
| Parameter |
Type |
Default |
Details |
key |
options |
"" |
required; user.email, user.name, remote.origin.url |
key |
string |
"" |
required |
value |
string |
"" |
required |
options |
collection |
{} |
keys: mode |
clone
| Parameter |
Type |
Default |
Details |
authentication |
options |
"none" |
gitPassword, none |
repositoryPath |
string |
"" |
required |
sourceRepository |
string |
"" |
required |
commit
| Parameter |
Type |
Default |
Details |
message |
string |
"" |
|
options |
collection |
{} |
keys: branch, pathsToAdd |
fetch
No additional parameters.
listConfig
No additional parameters.
log
| Parameter |
Type |
Default |
Details |
returnAll |
boolean |
false |
|
limit |
number |
100 |
|
options |
collection |
{} |
keys: file |
pull
No additional parameters.
push
| Parameter |
Type |
Default |
Details |
authentication |
options |
"none" |
gitPassword, none |
options |
collection |
{} |
keys: branch, targetRepository |
No additional parameters.
reflog
| Parameter |
Type |
Default |
Details |
returnAll |
boolean |
false |
|
limit |
number |
100 |
|
options |
collection |
{} |
keys: reference |
status
No additional parameters.
switchBranch
| Parameter |
Type |
Default |
Details |
branchName |
string |
"" |
required |
options |
collection |
{} |
keys: createBranch, startPoint, force, setUpstream, remoteName |
tag
| Parameter |
Type |
Default |
Details |
name |
string |
"" |
required |
userSetup
No additional parameters.
Common Parameters
| Parameter |
Type |
Default |
Details |
repositoryPath |
string |
"" |
required |
Parameter Details
options children:
| Parameter |
Type |
Default |
Details |
branch |
string |
"" |
|
targetRepository |
string |
"" |
|
Example
NODE "git" @git AS "Git" {
operation: "add",
repositoryPath: {{ $json.repositoryPath }},
pathsToAdd: {{ $json.pathsToAdd }},
value: {{ $json.value }},
sourceRepository: {{ $json.sourceRepository }}
}