mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
fork: Fetch origin after forking
This commit is contained in:
parent
362e08a2b6
commit
dbf87bf94e
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in a new issue