I did a: git clone http://github/anotheruser/something.git my-space
and made some changes. Is there anyway I can create a git repository in my account and commit my changes to it? I am aware I should have forked.
thx
The simplest solution is to fork the repository on GitHub, and then edit the .git/config
file in your local copy so that origin
points to your newly forked repository instead of the original one. You should then be able to push to it as normal.
If you prefer, you can use this command instead of editing the file:
git remote set-url origin <YOUR-REPO-URL>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.