how to clone private git and create a new one from it
I'm working in a group project. We have have a private git repo on github. I want to clone that repo and name it as 'new repo' in such a way that the new repo can only be accessed or modified by me. Any change on the old repo must not affect my repo. Is this possible?
Keep in mind the old git repo was not created by me, I was invited.
git clone repo.git
git remote remove origin
// Because you want to remove it completely. git remote add origin git@github.com:user_name/new_repo.git
git push -u origin HEAD
If you are working on a private repository and you are listed as a collaborator
You can clone the repository like any other repository using
git clone <url>
In order to push my local copy of the above to a remote repository elsewhere
git remote add <remote_name> <url>
git push [-u] <remote_name>
I think you can just fork it and remove other project member. Also can clone it, push to your Github and keep it private
链接地址: http://www.djcxy.com/p/90506.html上一篇: 将更改推回到用于引导新项目的拉出的存储库