如何把本地的仓库推送到远程仓库? #1
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 16 seconds
Due Date
suneshone
16 seconds
Dependencies
No dependencies set.
Reference: suneshone/obscuredSubtitles#1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
首先运行
git remote add <shortname> <url>
添加远程仓库可以通过运行
git remote
命令列出你指定的每一个远程服务器的简写,你也可以指定选项-v
,会显示需要读写远程仓库使用的 Git 保存的简写与其对应的 URL。然后运行
git push <remote> <branch>
将本地仓库推送到远程仓库比如将 master 分支推送到 origin 服务器
有类似
git push -u origin master
的推送,其中-u
的作用是以后可以直接输入git push
进行推送,不必再带上后面的内容。masterto refs/tags/v1.0