Git#
Git 是一个免费开源的分布式版本控制系统,旨在快速高效地处理从小到大的各种项目。
¥Git is a free and open-source distributed version control system designed to handle everything from small to large projects with speed and efficiency.
操作#
¥Operations
¥Add a file or folder to commit. Performs a git add.
- 添加配置:添加配置属性执行 git config 设置或添加操作。
¥Add Config: Add configuration property. Performs a git config set or add.
¥Clone a repository: Performs a git clone.
- 将文件或文件夹 提交 发送到 Git。执行 git commit。
¥Commit files or folders to git. Performs a git commit.
¥Fetch from remote repository. Performs a git fetch.
- 列出配置:返回当前配置。执行 git config 查询。
¥List Config: Return current configuration. Performs a git config query.
¥Log: Return git commit history. Performs a git log.
¥Pull from remote repository: Performs a git pull.
¥Push to remote repository: Performs a git push.
- 推送标签 指向远程仓库:执行 git push --tags。
¥Push Tags to remote repository: Performs a git push --tags.
- 返回当前存储库的 状态:执行 git status。
¥Return Status of current repository: Performs a git status.
¥Create a new Tag: Performs a git tag.
- 用户设置:设置用户。
¥User Setup: Set the user.
有关每个操作的参数和选项的更多详细信息,请参阅以下章节。
¥Refer to the sections below for more details on the parameters and options for each operation.
添加#
¥Add
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 要添加的路径:输入要添加到此字段的文件或文件夹路径列表(以逗号分隔)。你可以使用绝对路径或相对于存储库路径的相对路径。
¥Paths to Add: Enter a comma-separated list of paths of files or folders to add in this field. You can use absolute paths or relative paths from the Repository Path.
添加配置#
¥Add Config
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 密钥:输入要设置的键的名称。
¥Key: Enter the name of the key to set.
- 值:输入要设置的密钥值。
¥Value: Enter the value of the key to set.
添加配置选项#
¥Add Config options
添加配置操作会添加“模式”选项。选择是在本地配置中设置还是追加此设置。
¥The add config operation adds the Mode option. Choose whether to Set or Append the setting in the local config.
克隆#
¥Clone
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 身份验证:选择“身份验证”以传递凭据。选择“无”以不使用身份验证。
¥Authentication: Select Authenticate to pass credentials in. Select None to not use authentication.
-
Git 凭据:如果你选择“身份验证”,则必须为节点选择或创建凭据。有关更多信息,请参阅 Git 凭据。
¥Credential for Git: If you select Authenticate, you must select or create credentials for the node to use. Refer to Git credential for more information.
-
新建存储库路径:输入克隆仓库的本地路径。
¥New Repository Path: Enter the local path where you'd like to locate the cloned repository.
- 源存储库:输入你要克隆的存储库的 URL 或路径。
¥Source Repository: Enter the URL or path of the repository you want to clone.
提交#
¥Commit
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 消息:在此字段中输入要使用的提交消息。
¥Message: Enter the commit message to use in this field.
提交选项#
¥Commit options
提交操作会添加“要添加的路径”选项。要提交所有 "added" 文件和文件夹,请将此字段留空。要提交特定的 "added" 文件和文件夹,请在此字段中输入以逗号分隔的文件或文件夹路径列表。
¥The commit operation adds the Paths to Add option. To commit all "added" files and folders, leave this field blank. To commit specific "added" files and folders, enter a comma-separated list of paths of files or folders in this field.
你可以使用绝对路径或相对于存储库路径的相对路径。
¥You can use absolute paths or relative paths from the Repository Path.
获取#
¥Fetch
此操作仅提示你在“存储库路径”参数中输入 Git 存储库的本地路径。
¥This operation only prompts you to enter the local path of the git repository in the Repository Path parameter.
列出配置#
¥List Config
此操作仅提示你在“存储库路径”参数中输入 Git 存储库的本地路径。
¥This operation only prompts you to enter the local path of the git repository in the Repository Path parameter.
日志#
¥Log
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 返回全部:启用后,该节点将返回所有结果。关闭此选项后,节点将返回最多达到设定限制的结果。
¥Return All: When turned on, the node will return all results. When turned off, the node will return results up to the set Limit.
- 限制:仅当你关闭“全部返回”时可用。请输入要返回的最大结果数。
¥Limit: Only available when you turn off Return All. Enter the maximum number of results to return.
日志选项#
¥Log options
日志操作会添加“文件”选项。在此字段中输入要获取其历史记录的文件或文件夹的路径。
¥The log operation adds the File option. Enter the path of a file or folder to get the history of in this field.
你可以使用绝对路径或相对于存储库路径的相对路径。
¥You can use absolute paths or relative paths from the Repository Path.
拉取#
¥Pull
此操作仅提示你在“存储库路径”参数中输入 Git 存储库的本地路径。
¥This operation only prompts you to enter the local path of the git repository in the Repository Path parameter.
推送#
¥Push
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 身份验证:选择“身份验证”以传递凭据,或选择“无”以不使用身份验证。
¥Authentication: Select Authenticate to pass credentials in or None to not use authentication.
-
如果你选择“身份验证”,则必须为节点选择或创建 Git 凭据。有关更多信息,请参阅 Git 凭据。
¥If you select Authenticate, you must select or create Credential for Git for the node to use. Refer to Git credential for more information.
推送选项#
¥Push options
推送操作会添加“目标存储库”选项。在此字段中输入要推送到的存储库的 URL 或路径。
¥The push operation adds the Target Repository option. Enter the URL or path of the repository to push to in this field.
推送标签#
¥Push Tags
此操作仅提示你在“存储库路径”参数中输入 Git 存储库的本地路径。
¥This operation only prompts you to enter the local path of the git repository in the Repository Path parameter.
状态#
¥Status
此操作仅提示你在“存储库路径”参数中输入 Git 存储库的本地路径。
¥This operation only prompts you to enter the local path of the git repository in the Repository Path parameter.
标签#
¥Tag
使用以下参数配置此操作:
¥Configure this operation with these parameters:
- 存储库路径:输入 Git 仓库的本地路径。
¥Repository Path: Enter the local path of the git repository.
- 名称:在此字段中输入要创建的标签名称。
¥Name: Enter the name of the tag to create in this field.
用户设置#
¥User Setup
此操作仅提示你在“存储库路径”参数中输入 Git 存储库的本地路径。
¥This operation only prompts you to enter the local path of the git repository in the Repository Path parameter.
模板和示例#
¥Templates and examples