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 "[email protected]"
- Andare a https://github.com/settings/ssh e aggiungere la propria chiave privata SSH.
- Clonare il repository
git clone [email protected]:MariaDB/server.git cd server
- Eseguire
git branch
per controllare che si sta lavorando su MariaDB 10.1:
server $ git branch * 10.1
Branches
This is an important concept, and git branches do not have equivalents in bzr.
In Bazaar, we all used to have one shared repository, within which there were many branches. This seems to be impossible with git?
In Git, each repository has only one branch that is currently checked out.
git branch
Note: branches whose names start with bb-
are automatically put into the buildbot.
Equivalents for some bzr commands
CAVEAT EMPTOR. Check the manual before running!
bzr status
isgit status
bzr diff
isgit diff
bzr revert
isgit reset --hard
bzr parent
isgit remote -v
(but there are more detailed commands)bzr push
isgit push REMOTENAME BRANCHNAME
. REMOTENAME is typically "origin", for example:git push origin 10.1-new-feature
GUIs
bzr gcommit
isgit citool
bzr viz
isgitk
bzr gannotate
isgit gui blame
See also
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.