22
0
Fork 0

rajout de la syntaxe bash

This commit is contained in:
Daniel Jakots 2017-01-03 18:08:36 -05:00
parent d17e64b7da
commit e96a2b5d91
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ $ git gc
Il se peut qu'on change de forge (passage de gitolite à gitlab par
exemple) et il faut alors migrer les dépots. Un moyen de faire :
~~~
~~~{.bash}
$ 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
~~~