Skip to content

Commit

Permalink
cambiando rebase a merge
Browse files Browse the repository at this point in the history
  • Loading branch information
deybis committed Sep 15, 2024
1 parent 34b73c8 commit 37495a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .devcontainer/autoupdate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

# Obtener y fusionar cambios del repositorio upstream
GIT="git --git-dir=$PWD/.git --work-tree=$PWD"

$GIT fetch origin
$GIT rebase origin
$GIT fetch upstream
Expand Down
5 changes: 3 additions & 2 deletions .devcontainer/configuregit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
SAFE_DIRECTORY="/workspaces/codespaces-uni"
REPO="https://github.com/DeybisMelendez/codespaces-uni.git"

git config --global --add safe.directory "$SAFE_DIRECTORY"
git remote add upstream $REPO
GIT="git --git-dir=$PWD/.git --work-tree=$PWD"
$GIT config --global --add safe.directory "$SAFE_DIRECTORY"
$GIT remote add upstream $REPO
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
"files.autoSaveDelay": 3000,
"files.autoSaveWhenNoErrors": true
},
"postStartCommand": "sh .devcontainer/configuregit.sh && sh .devcontainer/autoupdate.sh"
"postAttachCommand": "sh .devcontainer/configuregit.sh && sh .devcontainer/autoupdate.sh"
}

0 comments on commit 37495a7

Please sign in to comment.