1# first, clone the repository
2git clone REPO REPO2
3cd REPO2
4# remove all unneeded files from this version
5git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch FILES_AND_DIRS_TO_DELETE"
6git gc --aggressive --prune=1day
7git fsck --unreachable
8# refresh the remote
9git remote rm origin
10git remote add origin ssh://HOST/REPO
11# broforce push!
12git push -f origin master
13
14# cleanup our original repository
15cd REPO
16git filter-branch -f --prune-empty --index-filter "git rm --cached --ignore-unmatch OTHER_FILES_AND_DIRS_TO_DELETE"
17git gc --aggressive --prune=1day
18git fsck --unreachable
19# broforce push!
20git push -f origin master
VirtualTam's bookmarks
-
2014-09-05 -
2014-07-04 -
2014-06-25 -
2014-06-16 -
2014-06-09 in
GITOLITE_USER/.gitolite.rc
:$ENV{PATH} = "/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:$ENV{PATH}"
-
2014-06-06 -
2014-06-03 -
2014-06-03 1er commandement: "Du contrôle de version, tu te soucieras" http://s3.media.squarespace.com/production/2129687/19317774/.a/6a00d8341d3df553ef017c330f2ae8970b-pi
2ème commandement: "avec Git, tu te formeras, sinon sous SVN tu resteras" http://s3.media.squarespace.com/production/2129687/19317774/.a/6a00d8341d3df553ef017743a87369970d-pi
3ème commandement: "Le merge, tu éviteras tant que faire se peut" http://geekandpoke.typepad.com/geekandpoke/2010/10/being-a-code-made-easy-chapter-1.html
4ème commandement: "De versionner n'importe quoi, tu t'abstiendras" http://geek-and-poke.com/geekandpoke/2012/11/7/simply-explained.html
5ème commandement: "Un commit réécrit, tu ne pusheras point" http://geek-and-poke.com/geekandpoke/2014/3/3/end-of-working-day
6ème commandement: "Avant de tester, tu ne pusheras point" http://geek-and-poke.com/geekandpoke/2013/5/31/finally-its-friday
7ème commandement: "le 6eme commandement tu appliqueras, ou ton chef te châtiera" http://geek-and-poke.com/geekandpoke/2013/11/24/simply-explained
8ème commandement: "Tu ne tricheras point" http://geek-and-poke.com/geekandpoke/2013/7/28/tdd
9ème commandement: ""Des tags tu abuseras" http://geek-and-poke.com/geekandpoke/2013/12/26/games-for-the-real-geeks
10ème commandement: "Ton Dieu Jenkins tu honoreras et ton salut tu trouveras" http://geek-and-poke.com/geekandpoke/2013/8/10/the-little-miracles
-
2014-05-28 -
Terminal with zsh and a neat display of git info!
-
ws-trim.el: ftp://ftp.lysator.liu.se/pub/emacs/ws-trim.el
-
2014-05-15 Bash completion & custom aliases
-
2014-04-10 Someday, all software will be built this way.