MMD Schema with Git: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Login to Github==
Fork mmd repos so have own repository

===Checkout Schema, particular branch===
===Checkout Schema, particular branch===
Checking out git schema, swicthing to another branch and making changes to that branch
Checking out git schema
<pre>
<pre>
git clone https://github.com/metabrainz/mmd-schema.git mmd-schema
git clone https://github.com/metabrainz/mmd-schema.git mmd-schema
cd mmd-schema
git checkout branchname
</pre>
</pre>


==Possible create new branch following changes
===Possible create new branch following changes===
We may just want to branch from master
ijabz: git remote add ian https://ianmcorvidae@bitbucket.org/ianmcorvidae/mmd-schema.git; git fetch ian; git checkout --track -b mbs-799 ian/mbs-799;
<pre>
git checkout -b mbs-799
</pre>


== Map Own Repos ==
Map own repos created on github to an alias
git remote add ijbaz git@github.com:ijabz/mmd-schema.git
TODO wrong url, need the one wchich doesnt need public key


alternatively we may want to branch from another remote repos we are interested, then create new branch that tracks the branch in that remote repository containing the changes we are interested in
==Make Chnages ==
<pre>
git remote add ian https://ianmcorvidae@bitbucket.org/ianmcorvidae/mmd-schema.git;
git fetch ian
git checkout --track -b mbs-799 ian/mbs-799;
</pre>

===Make Changes ===
Edit Files
Edit Files


=Pick up any additional changes
===Pick up any additional changes if neccessary===
<pre>
git pull
git pull
</pre>


== Commit files to my local verison ==
===Commit files to my local version===
<pre>
<pre>
git commit -a -m "message"
git commit -a -m "message"
</pre>
</pre>


===Remove any files no longer needed===
== Send to my remote Repos ==
--TODO how do we do this

===Send to my remote Repos ===
Create new remote reopos forked from mmd-schema in bitbucket
Then map to it and push my branch to it.
<pre>
<pre>
git remote add ijabz1 https://ijabz@bitbucket.org/ijabz/mmd-schema.git
git push ijabz branchname
git push ijabz1 mbs-799
</pre>
</pre>
== Request other review Changes ==
Login to github
Go to my repos and 'Pull'


===Request other review Changes ===
== Wait for Reviews==
Login to BitBucket

Go to my new repository and 'Pull'

Choose ijabz/metabrainz-schema and branch from left hand side

Choose the metabrainz-mmdschema repos and master branch on the right-handside

Add Reviewers

===Wait for Reviews===
Need at least two
Need at least two
If okay then request my pull request is merged into main branch
If okay then request my pull request is merged into main repository

===Sync Repos===
Once it has been merged, then use Bitbucket to sync your repository with the mions repos

Latest revision as of 08:54, 29 April 2014

Checkout Schema, particular branch

Checking out git schema

git clone https://github.com/metabrainz/mmd-schema.git mmd-schema
cd mmd-schema

Possible create new branch following changes

We may just want to branch from master

git checkout -b mbs-799


alternatively we may want to branch from another remote repos we are interested, then create new branch that tracks the branch in that remote repository containing the changes we are interested in

git remote add ian https://ianmcorvidae@bitbucket.org/ianmcorvidae/mmd-schema.git; 
git fetch ian 
git checkout --track -b mbs-799 ian/mbs-799;

Make Changes

Edit Files

Pick up any additional changes if neccessary

git pull

Commit files to my local version

git commit -a -m "message"

Remove any files no longer needed

--TODO how do we do this

Send to my remote Repos

Create new remote reopos forked from mmd-schema in bitbucket Then map to it and push my branch to it.

git remote add ijabz1 https://ijabz@bitbucket.org/ijabz/mmd-schema.git
git push ijabz1 mbs-799

Request other review Changes

Login to BitBucket

Go to my new repository and 'Pull'

Choose ijabz/metabrainz-schema and branch from left hand side

Choose the metabrainz-mmdschema repos and master branch on the right-handside

Add Reviewers

Wait for Reviews

Need at least two If okay then request my pull request is merged into main repository

Sync Repos

Once it has been merged, then use Bitbucket to sync your repository with the mions repos