Skip to content

Instantly share code, notes, and snippets.

View Guirec's full-sized avatar

Guirec Lefort Guirec

View GitHub Profile
@Guirec
Guirec / gulpfile.js
Created November 20, 2014 18:50
Example of a simple gulpfile for Magento
/*
* Example of a simple gulpfile for Magento
*
* $ npm install --save gulp
* $ npm install --save gulp-sass gulp-autoprefixer gulp-minify-css gulp-rename gulp-concat gulp-uglify gulp-cache gulp-imagemin
*/
// Load plugins
var gulp = require('gulp');
var sass = require('gulp-sass');

Keybase proof

I hereby claim:

  • I am guirec on github.
  • I am guirec (https://keybase.io/guirec) on keybase.
  • I have a public key whose fingerprint is 4B8F 5336 545E 9FBC 5BCA 52DD B115 DE53 CAB1 C94D

To claim this, I am signing this object:

@Guirec
Guirec / recover-deleted-branch.sh
Created June 13, 2024 14:32 — forked from umayr/recover-deleted-branch.sh
How to recover a deleted branch
## Pre-requisite: You have to know your last commit message from your deleted branch.
git reflog
# Search for message in the list
# a901eda HEAD@{18}: commit: <last commit message>
# Now you have two options, either checkout revision or HEAD
git checkout a901eda
# Or
git checkout HEAD@{18}
@Guirec
Guirec / git-pull-after-forced.md
Created November 3, 2024 14:57
git pull after remote forced update

No new local work

git switch branchname

git pull --rebase

Update and preserve local work