-
Notifications
You must be signed in to change notification settings - Fork 0
[add] upload subcommand and support optional Target Folder for download subcommand
#5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@copilot #### 核心操作 cd source-folder
git init
git remote add origin https://some.git.server/path/to/repository
git checkout -b target-branch
git add .
git commit -m "upload by Git-utility CLI"
git push --set-upstream origin target-branch -f |
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
TechQuery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot 最后加一个可选目标目录的参数,如果有特定目录,就先拉取、再覆盖,然后非强制推送。
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
TechQuery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
TechQuery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot 给下载子命令加一个末尾可选参数,用于指定下载的本地目标路径,这个参数的默认值就是源路径。
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
TechQuery
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
…after download Co-authored-by: TechQuery <19969570+TechQuery@users.noreply.github.com>
[optimize] update Upstream packages
upload subcommand and support optional Target Folder for download subcommand
Summary
Upload Command (New)
Implemented
uploadsubcommand with clean, maintainable code:Basic Usage (Force Push)
Advanced Usage (Non-Force Push to Subdirectory)
git clone -bDownload Command (Enhanced)
Added optional
localPathparameter with intelligent defaults:Usage Examples
Smart Default Behavior:
folderOrFilePath, it uses that as the local destination by defaultlocalPathis explicitly provided, uses that valueCode Quality
localPath = folderOrFilePathOriginal prompt
Human changes
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.