Git Reduce Repo Size · CodeBlastr/Zuha Wikihttps://github.com/CodeBlastr/Zuha/wiki/Git-Reduce-Repo-Size
Liste de commandes pour réduire la taille d'un repo git en détectant et supprimant les vieux fichiers volumineux
Understanding the GitHub Flow · GitHub Guideshttps://guides.github.com/introduction/flow/
GitLab Flow | GitLabhttps://about.gitlab.com/2014/09/29/gitlab-flow/
Git Workflows and Tutorials | Atlassian Git Tutorialhttps://www.atlassian.com/git/tutorials/comparing-workflows
Un workflow Git efficace pour les projets à moyen/long terme — Makina Corpushttp://makina-corpus.com/blog/metier/2014/un-workflow-git-efficace-pour-les-projets-a-moyen-long-terme
Workflow git utilisé par makina corpus
Every line of code is always documentedhttp://mislav.uniqpath.com/2014/02/hidden-documentation/
Utilisation de git blame directement dans vim avec fugitive pour connaitre qui a modifié la dernière fois une ligne de code
Emergency git flowhttps://pbs.twimg.com/media/Bw3pmolCUAAQ4wZ.jpg:large
Diagramme d'aide à la décision de la commande git à utiliser en cas de pb
How do I make git ignore mode changes (chmod)?http://stackoverflow.com/a/1580644/146363
Pour que git ignore les permissions de fichiers :
git config core.fileMode false
OU
git config --global core.filemode false
Git - Quickest Way to Resolve Most Merge Conflictshttps://rtcamp.com/tutorials/git/git-resolve-merge-conflicts/
Résoudre les conflits de merge de façon automatique, groupé.
Prendre en compte la version distante :
grep -lr '<<<<<<<' . | xargs git checkout --theirs
Prendre la version locale :
grep -lr '<<<<<<<' . | xargs git checkout --ours
Announcing gitshhttp://robots.thoughtbot.com/announcing-gitsh
Shell git
The Tapir's Tale: Finding with Githttp://anders.janmyr.com/2012/01/finding-with-git.html
Faire des recherches avec git
git ready » squashing commits with rebasehttp://gitready.com/advanced/2009/02/10/squashing-commits-with-rebase.html
L'avantage du rebase merger des commit en un seul pour rendre plus lisible l'historique
jedbrown / git-fathttps://github.com/jedbrown/git-fat
Permet de stocker les fichier volumineux, binaire dans git sans être réellement dans git (un peu comme git-annex)
A full-featured & carefully designed adaptive prompt for Bash & Zshhttps://github.com/nojhan/liquidprompt
Un prompt bash/zsh totalement customisable
Simple Git workflow is simple - Atlassian Blogshttp://blogs.atlassian.com/2014/01/simple-git-workflow-simple/
Delete Merged Branches with githttp://davidwalsh.name/delete-merged-branches-git?utm_content=buffer0c06d
Alias git pour supprimer toutes les branches déjà mergé avec master :
[alias]
delete-merged-branches = "!f() { git checkout --quiet master && git branch --merged | grep --invert-match '\*' | xargs -n 1 git branch --delete; git checkout --quiet @{-1}; }; f"
Encore mieux :
http://rob.by/2013/remove-merged-branches-from-git/
Setup mirror between 2 or more git server using hooks script - Eric Guo's blog.cloud-mes.comhttp://blog.cloud-mes.com/2013/04/05/setup-mirror-between-2-or-more-git-server-using-hooks-script/
Faire un repo git mirroir
Voir aussi : http://interrobeng.com/2013/08/25/speed-up-git-5x-to-50x/
Améliorer votre workflow avec git-flowhttp://jeromesmadja.github.io/2013/03/23/git-flow.html
Workflow git ultra "connu" : gitflow
git - How to push a new local branch to remote repo and track it too - Stack Overflowhttp://stackoverflow.com/questions/2765421/how-to-push-a-new-local-branch-to-remote-repo-and-track-it-too
Lorsque l'on pousse une branche nouvellement créée dans git cette dernière n'est pas automatiquement tracké et donc lorsque l'on fit un git pull ou push, git indique qu il faut donner le "chemin" de la branche en y ajoutant --set-upstream.
git checkout -b prod
git push origin prod
git pull
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> prod
SAUF si on pousse la branche avec l'option -u :
git checkout -b prod
git push -u origin prod
git pull