feature: fn(x) for forking repos via github
This commit is contained in:
parent
fa938d9df5
commit
b88a574495
@ -483,9 +483,15 @@ function clone() {
|
||||
error "unable to change current directory to : $folder"
|
||||
fi
|
||||
else
|
||||
error "unable to clone repository url : $1"
|
||||
error "unable to clone repository from url : $1"
|
||||
fi
|
||||
}
|
||||
function fork() {
|
||||
# FIXME : go to local copy of the repo after the fork
|
||||
code
|
||||
local folder=$(basename $1 | sed 's/\.git.*//g')
|
||||
gh repo fork "$1"
|
||||
}
|
||||
function git-project() {
|
||||
if [ -d "$REPO_PATH" ]; then
|
||||
REPO_PATH="$(pwd)"
|
||||
|
Loading…
Reference in New Issue
Block a user