From dbf87bf94eaab0362e144e502eac3fb78d951696 Mon Sep 17 00:00:00 2001 From: Yi EungJun Date: Tue, 26 Jul 2016 10:36:56 +0900 Subject: [PATCH] fork: Fetch `origin` after forking --- bin/git-fork | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/git-fork b/bin/git-fork index 1294254..0981488 100755 --- a/bin/git-fork +++ b/bin/git-fork @@ -37,6 +37,7 @@ curl -X POST -u "$user" "https://api.github.com/repos/$owner/$project/forks" if [ "$origin" = true ]; then git remote rename origin upstream git remote add origin "https://github.com/$user/$project" + git fetch origin else # clone forked repo into current dir git clone "https://github.com/$user/$project" "$project"