Asterisk Blacklist Hobby webbhotell


Oneliner to backup git repos from Gitolite

Filed under: GIT — Mathz @ 16:12

ssh <user>@<githost> info | sed -n ‘/^ R W/p’ | sed -r ‘s/^.{5}//’ | while read line ; do git clone ssh://<user>@<host>/$line ; done


GIT push

Filed under: GIT — Mathz @ 07:27

Create a new repo.
Clone the repo from existingserver to your local machine.

git remote rename origin upstream
git remote add origin URL_TO_NEW_REPO
git push origin master

Now you can work with it just like any other git repo. To pull in patches from upstream, simply run

git pull upstream master && git push origin master.

Powered by WordPress