git clone https://github.com/indirizzo clona il repository sul tuo pc in locale
git branch -- list
mostra tutti i branch aperti
git branch --all
mostra tutti i branch esistenti (anche quelli passati)
git checkout nomebranch
va nel branch specificato.
se dal branch digiti git push https:github.com/userid/indirizzo.git viene inviato e creato il branch.
q per uscire dalla lettura di log e files.
Creare un nuovo branch via shell
Prima si crea un branch in locale con
git checkout -b nomebranch
poi si fa
git add .
git commit -m messaggio
e infine...
git push origin aba
NB origin è l'url del git (messo con git remote add origin url)
Creare un nuovo branch via shell
Prima si crea un branch in locale con
git checkout -b nomebranch
poi si fa
git add .
git commit -m messaggio
e infine...
git push origin aba
NB origin è l'url del git (messo con git remote add origin url)
Nessun commento:
Posta un commento