Skip to content

Instantly share code, notes, and snippets.

@Kvnbbg
Last active June 9, 2026 14:23
Show Gist options
  • Select an option

  • Save Kvnbbg/0eeaaa6e72d4a7793fd554f718ed2307 to your computer and use it in GitHub Desktop.

Select an option

Save Kvnbbg/0eeaaa6e72d4a7793fd554f718ed2307 to your computer and use it in GitHub Desktop.
Unix / Pourquoi : après avoir déjà poussé le correctif Dependabot, refaire une branche backup, un fetch/rebase, puis un commit Fix for prod ne sert à rien si aucun fichier n’a changé. Ça risque surtout de créer du bruit.

1. Vérifier l’état

git status git log --oneline --decorate -5

2. Sécuriser avant intégration distante

git branch backup/$(date +%Y%m%d-%H%M)-before-rebase

3. Synchroniser proprement

git fetch origin git rebase origin/main

4. Corriger dépendances

npm audit npm outdated npm install npm audit fix

5. Tester build

npm run build npm audit

6. Vérifier les fichiers modifiés

git status git diff -- package.json package-lock.json

7. Commit + push

git add . git commit -m "Fix dependency vulnerability" git pull --rebase origin main git push origin main

8. Contrôle final

git status npm audit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment