improve my fork workflow
- always go to new copy of the cloned repository after forking it - always set the local repo user config after the fork - always check for spelling mistakes in the forked repo readme files just in case
This commit is contained in:
parent
ac7bfb46f8
commit
91c41d33cb
@ -559,10 +559,15 @@ function clone() {
|
||||
fi
|
||||
}
|
||||
function fork() {
|
||||
# FIXME : go to local copy of the repo after the fork
|
||||
code
|
||||
code || exit
|
||||
local folder=$(basename $1 | sed 's/\.git.*//g')
|
||||
gh repo fork "$1"
|
||||
gh repo fork "$1" --clone && cd "$folder"
|
||||
if [[ "$1:u" =~ "$COMPANY_NAME:u" ]]; then
|
||||
gitpro
|
||||
else
|
||||
gitperso
|
||||
fi
|
||||
checkenlist README*
|
||||
}
|
||||
function git-project() {
|
||||
if [ -d "$REPO_PATH" ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user