莆仙生活网
当前位置: 莆仙生活网 > 知识库 >

hearthstone deck tracker

时间:2024-06-21 11:35:14 编辑:莆仙君

怎么在Github网页上更新fork

git clone 命令
-o
Instead of using the remote name origin to keep track of the upstream repository, use .

1.从自己fork之后的版本库clone
git clone -o chucklu https://github.com/chucklu/Hearthstone-Deck-Tracker.git
2.再将别人的版本库git remote add
git remote add epix37 https://github.com/Epix37/Hearthstone-Deck-Tracker.git

查看所有远端
$ git remote -v
chucklu https://github.com/chucklu/Hearthstone-Deck-Tracker.git (fetch)
chucklu https://github.com/chucklu/Hearthstone-Deck-Tracker.git (push)
epix37 https://github.com/Epix37/Hearthstone-Deck-Tracker.git (fetch)
epix37 https://github.com/Epix37/Hearthstone-Deck-Tracker.git (push)

如果之前用的是git clone命令的话,可以用rename来进行重命名远端
重新命名远端git remote rename oldname newname

github fork后怎样再更新

git clone 命令
-o
Instead of using the remote name origin to keep track of the upstream repository, use .

1.从自己fork之后的版本库clone
git clone -o chucklu https://github.com/chucklu/Hearthstone-Deck-Tracker.git
2.再将别人的版本库git remote add
git remote add epix37 https://github.com/Epix37/Hearthstone-Deck-Tracker.git

查看所有远端
$ git remote -v
chucklu https://github.com/chucklu/Hearthstone-Deck-Tracker.git (fetch)
chucklu https://github.com/chucklu/Hearthstone-Deck-Tracker.git (push)
epix37 https://github.com/Epix37/Hearthstone-Deck-Tracker.git (fetch)
epix37 https://github.com/Epix37/Hearthstone-Deck-Tracker.git (push)

如果之前用的是git clone命令的话,可以用rename来进行重命名远端
重新命名远端git remote rename oldname newname