Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/231.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 关于Github的问题_Android_Git_Github - Fatal编程技术网

Android 关于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 $

我从android Rom开发开始。 源代码的原始作者已将其上传到github上 到目前为止,我已经使用谷歌的repo工具将它从github同步到我的本地机器

我怎样才能在不再次下载的情况下进行回购

我是否应该进入该目录并在从github网站分叉后执行

$ 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
    
这样,你仍然可以跟踪原始回购协议,同时推动你的叉子

要说明更新过程,请参阅:

  • “”
  • “”
  • “”

您的意思是git remote rm origin git remote add origin MY Forked Repo Address??