18
0
Fork 0

commande pour avoir des stats sur git

This commit is contained in:
Daniel Jakots 2017-01-03 18:07:23 -05:00
parent cb72e84c10
commit d17e64b7da
1 changed files with 8 additions and 0 deletions

View File

@ -765,3 +765,11 @@ exemple) et il faut alors migrer les dépots. Un moyen de faire :
$ for branch in `git branch -a | grep remotes | grep -v HEAD | grep -v master`; do rbranch=$(echo $branch | tr '/' ' ' | awk '{print $3}') ; git checkout -b $rbranch $branch ; done
$ git remote add gitlab gitlab@gitlab.example.com:group/repo.git && git push gitlab --all && git remote remove origin && git remote rename gitlab origin && git push --set-upstream origin master
~~~
# Avoir des stats basiques
Il existe la commande shortlog pour avoir quelques stats sur un dépôt git
~~~
git shortlog -sne
~~~