Git: branch e merge, comandi essenziali
Di seguito le operazioni basic da svolgere per lavorare correttamente con i branch in GIT
git init inizializzo il repository
git add * aggiungo tutti i file al repository
Una volta che ho un repo in uno stato consistente posso usufruire dei branch:
git checkout -b calcoloCategoria creo un branch che si chiama calcoloCategoria
[LAVORO NEL MIO NUOVO BRANCH]
git commit Eseguo il commit del branch
git checkout master Mi sposto nel branch destinazione del merge
git merge calcoloCategoria Eseguo il merge: branch master riceve le modifiche apportate nel branch calcoloCategoria
git branch -d calcoloCategoria Cancella il branch che non serve più
Commenti
Posta un commento