MMD Schema with Git: Difference between revisions

From MusicBrainz Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 10: Line 10:


==Possible create new branch following changes
==Possible create new branch following changes
Add mapping to remote repos we are interested
Then Create new branch that tracks the branch in that remote repository containing the changes we are interested in
<pre>
<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;
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>
</pre>
== Map Own Repos ==
Map own repos created on github to an alias
<pre>
git remote add ijbaz git@github.com:ijabz/mmd-schema.git
</pre>
TODO wrong url, need the one wchich doesnt need public key


==Make Chnages ==
==Make Chnages ==
Edit Files
Edit Files


=Pick up any additional changes
=Pick up any additional changes if neccessary
git pull
git pull


== Commit files to my local verison ==
== Commit files to my local version ==
<pre>
<pre>
git commit -a -m "message"
git commit -a -m "message"
Line 32: Line 30:


== Send to my remote Repos ==
== 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 ==
== Request other review Changes ==
Login to github
Login to BitBucket
Go to my repos and 'Pull'
Go to my new repository and 'Pull'
Add Reviewers


== Wait for Reviews==
== Wait for Reviews==

Revision as of 13:05, 10 May 2013

Login to Github

Fork mmd repos so have own repository

Checkout Schema, particular branch

Checking out git schema, swicthing to another branch and making changes to that branch

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

==Possible create new branch following changes Add mapping to 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 Chnages

Edit Files

=Pick up any additional changes if neccessary git pull

Commit files to my local version

git commit -a -m "message"

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' Add Reviewers

Wait for Reviews

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