Git 本地存储库提交导出
Git local repository commits export
我可能有一个愚蠢的问题..
我将为我的项目使用本地存储库。
是否可以将包含所有提交历史记录的整个存储库导出到远程存储库(例如,我将在半年内创建它)。
例如,所有提交都会出现在 github 或其他远程 git 平台的提交历史记录中吗?
是的,它会将所有提交历史推送到远程分支。
只需添加远程分支并推送
git remote add origin https://github.com/user/repo.git
然后通过以下命令推送
git push <remote_branch> <local_branch>
我可能有一个愚蠢的问题.. 我将为我的项目使用本地存储库。 是否可以将包含所有提交历史记录的整个存储库导出到远程存储库(例如,我将在半年内创建它)。 例如,所有提交都会出现在 github 或其他远程 git 平台的提交历史记录中吗?
是的,它会将所有提交历史推送到远程分支。
只需添加远程分支并推送
git remote add origin https://github.com/user/repo.git
然后通过以下命令推送
git push <remote_branch> <local_branch>