Category: GIT
-
Oneliner to backup git repos from Gitolite
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
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…