|
Checkout inicial
git clone git@git.---.es/ateneaXY/<projecte>.git
|
|
Afegir canvis a commit
git add -A .
|
|
Commit
git commit -m '<message>'
|
|
Push a respositori remot
git push
|
|
Afegir canvis i commit
git commit -a -m '<message>'
|
|
Actualitzar del remot
git pull
|
|
Descartar canvis per l'últim commit
git checkout -- <file>
|
|
Descartar canvis per l'últim commit pujat
git reset --hard origin/master <file>
|
|
Eliminar els N últims commits locals
git reset --soft HEAD~N
|
|
Crea una nova tag
git tag vYYYY.MM.DD
|
|
Puja les tags
git push --tags
|
|
Mostrar canvis per fer commit
git status
|
|
Mostrar commits no pujats
git log origin/master..master
|
|
Mostrar canvis d'un commit
git shot <commithash>
|
|
Llistar repositoris remots
git remote -v
|
|
Afegir repositori remot
git remote add <remote> <url>
|
|
Baixar canvis d'un repositori
git fetch <remote>
|
|
Rebase
git rebase [-i] <remote>/<branch>
|
|
Llista projectes i versions
entorn.py -l
|
|
Crea un entorn buit
entorn.py -c
|
|
Crea entorn amb el codi de SVN/GIT
entorn.py -c <entorn> <projecte> <versió>
|
|
Actualitza un entorn (SVN/GIT)
entorn.py -u <entorn> <projecte> <versió>
|
|
Paquet amb codi de SVN/GIT a /tmp
entorn.py -p <entorn> <projecte> <versió>
|
|
Clona un entorn
entorn.py -cc <entorn> <origen>
|
|
Buida un entorn
entorn.py -e <entorn>
|
|
Elimina un entorn
entorn.py -d <entorn>
|
|
Executa una acció a un entorn
entorn.py -a <entorn> <action>
|
|
Accions disponibles
purge, password, install, upgrade, generate, cron, script
|
|
Backup d'un entorn a /tmp
entorn.py -b <entorn>
|
|
Restore d'un entorn
entorn.py -b <entorn> <fitxer_tar>
|
No comments yet.
Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.