Usare Git
Stai visualizzando una vecchia versione di questo article. Visualizza
la versione più recente.
Setup
- Impostare il proprio nome con git
git config --global user.name "Ivan Ivanov" git config --global user.email "ivan@mariadb.com"
- Andare a https://github.com/settings/ssh e aggiungere la propria chiave privata SSH.
- Clonare il repository
git clone git@github.com:MariaDB/server.git cd server
- Eseguire
git branch
per controllare che si sta lavorando su MariaDB 10.1:
server $ git branch * 10.1
Branche
Questo è un concetto importante, e le banch di git non hanno un equivalente in bzr.
In Bazaar, tutti utilizzavamo un repository condiviso, nel quale c'erano molte branch. Questo sembra essere impossibile con git?
In Git, ogni repository ha solo una branch su cui c'è un check out.
git branch
Nota: le branch i cui nomi iniziano con bb-
vengono inserite automaticamente in buildbot.
Equivalenti di alcuni comandi bzr
ATTENZIONE. Controllare il manuale prima di eseguirli!
bzr status
ègit status
bzr diff
ègit diff
bzr revert
ègit reset --hard
bzr parent
ègit remote -v
(ma ci sono comandi più dettagliati)bzr push
ègit push NOMEREMOTO NOMEBRANCH
. NOMEREMOTO tipicamente è "origin", per esempio:git push origin 10.1-new-feature
GUI
bzr gcommit
ègit citool
bzr viz
ègitk
bzr gannotate
ègit gui blame
Vedi anche
Commenti
Sto caricando i commenti......
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.