|
|
(11 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
| This page documents how to add test data while developing VTK.
| | The instructions previously available on this page have been superseded. See [https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/data.md here]. |
| See our [[VTK/Git|table of contents]] for more information. | |
| __TOC__
| |
| =Setup=
| |
| | |
| {| style="width: 100%"
| |
| |-
| |
| |width=60%|
| |
| Clone the [http://vtk.org/VTKData.git <code>VTKData</code>] repository:
| |
| :<code>$ git clone git://vtk.org/VTKData.git</code>
| |
| :<code>$ cd VTKData</code>
| |
| |align="center"|
| |
| [[Git/Trouble#Firewall_Blocks_Port_9418|Connection refused]]?
| |
| |-
| |
| |
| |
| Configure the ssh protocol pushurl:
| |
| |-
| |
| |
| |
| :<code>$ git config remote.origin.pushurl git@vtk.org:VTKData.git</code>
| |
| |align="center"|
| |
| [http://schacon.github.com/git/git-config.html <code>git help config</code>]
| |
| |-
| |
| |
| |
| Configure the local '''master''' branch to rebase on pull:
| |
| |-
| |
| |
| |
| :<code>$ git config branch.master.rebase true</code>
| |
| |align="center"|
| |
| [http://schacon.github.com/git/git-config.html <code>git help config</code>]
| |
| |}
| |
| | |
| =Update=
| |
| | |
| {| style="width: 100%"
| |
| |-
| |
| |width=60%|
| |
| To update a clone with the latest changes run
| |
| |-
| |
| |
| |
| :<code>$ git checkout master</code>
| |
| :<code>$ git pull</code>
| |
| |align="center"|
| |
| [http://schacon.github.com/git/git-checkout.html <code>git help checkout</code>]
| |
| | |
| [http://schacon.github.com/git/git-pull.html <code>git help pull</code>]
| |
| |}
| |
| | |
| =Add Data=
| |
| | |
| {| style="width: 100%"
| |
| |-
| |
| |width=60%|
| |
| To add new data simply place it at the desired location in the work tree and tell Git to add it, commit, and push:
| |
| |-
| |
| |
| |
| :<code>$ cp ~/myimage.png Data/myimage.png</code>
| |
| :<code>$ git add Data/myimage.png</code>
| |
| :<code>$ git commit</code>
| |
| :<code>$ git push origin master</code>
| |
| |align="center"|
| |
| [http://schacon.github.com/git/git-add.html <code>git help add</code>]
| |
| | |
| [http://schacon.github.com/git/git-commit.html <code>git help commit</code>]
| |
| | |
| [http://schacon.github.com/git/git-push.html <code>git help push</code>]
| |
| |}
| |