github fork后怎样再更新

git clone 命令

-o <name>

Instead of using the remote name origin to keep track of the upstream repository, use <name>.

1.从自己fork之后的版本库clone

git clone -o chucklu /chucklu/Hearthstone-Deck-Tracker.git

2.再将别人的版本库git remote add

git remote add epix37 /Epix37/Hearthstone-Deck-Tracker.git

查看所有远端

$ git remote -v

chucklu /chucklu/Hearthstone-Deck-Tracker.git (fetch)

chucklu /chucklu/Hearthstone-Deck-Tracker.git (push)

epix37 /Epix37/Hearthstone-Deck-Tracker.git (fetch)

epix37 /Epix37/Hearthstone-Deck-Tracker.git (push)

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

重新命名远端git remote rename oldname newname