如何在不把远程仓库整个下载下来的情况下,向远程github仓库添加文件?

2025-05-14 17:20:25
推荐回答(1个)
回答1:

▶ git remote -h
用法:git remote [-v | --verbose]
或:git remote add [-t <分支>] [-m ] [-f] [--tags|--no-tags] [--mirror=] <名称>
或:git remote rename <旧名称> <新名称>
或:git remote remove <名称>
或:git remote set-head <名称> (-a | --auto | -d | --delete |<分支>)
或:git remote [-v | --verbose] show [-n] <名称>
或:git remote prune [-n | --dry-run] <名称>
或:git remote [-v | --verbose] update [-p | --prune] [(<组> | <远程>)...]
或:git remote set-branches [--add] <名称> <分支>...
或:git remote set-url [--push] <名称> <新的地址> [<旧的地址>]
或:git remote set-url --add <名称> <新的地址>
或:git remote set-url --delete <名称> <地址>

-v, --verbose 冗长输出;必须置于子命令之前