Using Git
You are viewing an old version of this article. View
the current version here.
Setup
- Set your name with git
git config --global user.name "Ivan Ivanov" git config --global user.email "[email protected]"
- Go to https://github.com/settings/ssh and add your private SSH key.
- Clone the repository
git clone [email protected]:MariaDB/server.git
- Run
git branch
to check that you're working on MariaDB 10.1:
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
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
GUIs
bzr gcommit
isgit citool
bzr gannotate
isgitk
Comments
Comments loading...
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.