Android 关于Github的问题
我从android Rom开发开始。 源代码的原始作者已将其上传到github上 到目前为止,我已经使用谷歌的repo工具将它从github同步到我的本地机器 我怎样才能在不再次下载的情况下进行回购 我是否应该进入该目录并在从github网站分叉后执行Android 关于Github的问题,android,git,github,Android,Git,Github,我从android Rom开发开始。 源代码的原始作者已将其上传到github上 到目前为止,我已经使用谷歌的repo工具将它从github同步到我的本地机器 我怎样才能在不再次下载的情况下进行回购 我是否应该进入该目录并在从github网站分叉后执行 $ git clone https://github.com/username/repo-name.git' 我无法尝试,因为repo仍在同步。我认为您可以更改git repo远程地址 例如: $ git remote rm origin $
$ git clone https://github.com/username/repo-name.git'
我无法尝试,因为repo仍在同步。我认为您可以更改git repo远程地址 例如:
$ git remote rm origin
$ git remote add origin git_forked_repo_address
你应该:
- 将初始url远程名称重命名为上游
git remote rename origin upstream
- 添加新原点:
git add origin https://YourLogin@github.com/YourLogin/yourFork
- “”
- “”
- “”