Go to file
Leonard Smith f22d2a8c2b Fixed some XML errors in Matthew 2021-05-01 17:48:49 -05:00
.github Fix for unresolved parenthesis ... 2019-10-23 14:03:08 -04:00
Auto-tagged Tagging ULB 2020-07-31 14:47:37 -04:00
Checked Fixed some XML errors in Matthew 2021-05-01 17:48:49 -05:00
Data Tagging ULB 2020-07-28 17:34:48 -04:00
Logs Tagging ULB 2020-07-28 17:34:48 -04:00
Manual_Tagging Pulled updated XML files from Stephen's working branch 2021-04-02 11:21:59 -04:00
Misc Tagging ULB 2020-07-28 17:34:48 -04:00
Output Tagging ULB 2020-08-03 16:28:04 -04:00
Tag_test Tagging ULB 2020-07-28 17:34:48 -04:00
ULB_xml Tagging ULB 2020-07-28 17:34:48 -04:00
doc_images Updated the README 2020-10-13 17:35:23 -05:00
output_from_3 Tagging ULB 2020-07-28 17:34:48 -04:00
output_from_newer Tagging ULB 2020-07-28 17:34:48 -04:00
.gitattributes
.gitignore
Build_OL_files_from_XML.pl Now needed for tagging 2020-07-28 17:34:26 -04:00
Build_ULB_XML_for_Tagging.pl Updated the buld scripts to Stephen's local setup 2021-04-02 11:28:19 -04:00
Check_ULB.pl Changes made to versions of Philippians and Colossians in checked file to align with updated version of the ULB made at end of Nov. Changed some use of definite article and use of Gk hagios. MAT, MRK, LUK, 1PE, 2PE, 2JN, 3JN all edited and added to checked file. 2021-04-16 12:07:58 -04:00
Construct_auto-tagged_ULB_XML_files_from_unified_ULB_XML_and_tWs_and_OGNT.pl Updated the buld scripts to Stephen's local setup 2021-04-02 11:28:19 -04:00
Extract_Concordance.pl Tagging ULB 2020-08-06 16:29:51 -04:00
Find_first_occurrence_of_proper_nouns.pl Now needed for tagging 2020-07-28 17:34:26 -04:00
Find_first_occurrence_of_tWs.pl Now needed for tagging 2020-07-28 17:34:26 -04:00
Get_Strong_variants.pl Now needed for tagging 2020-07-28 17:34:26 -04:00
Inventory_usfm_markers.pl Now needed for tagging 2020-07-28 17:34:26 -04:00
README.md Update 'README.md' 2021-03-18 19:25:45 +00:00
Template.md Instructions for skewed tagging. 2020-08-12 08:41:54 -04:00

README.md

Managing git branches with SmartGit for en_ulb_tagged repository

Setup a Fork of the en_ulb_tagged repository from within Gitlab

The following setups will create a complete copy of the source repository under your user name.

  1. Login to the WA Gitlab server:
    1. Navigate to https://content.bibletranslationtools.org
    2. Click "Sign In" in the upper right corner
    3. Enter your sign in credentials.
  2. Navigate to the en_ulb_tagged repo: https://content.bibletranslationtools.org/WycliffeAssociates/en_ulb_tagged
  3. Click on the fork button in just under the "Sign In" button on the upper right: Image of the repo header with fork button on the right of the page
  4. On the "New Repository Fork" page, click the green "Fork Repository" button to create your new fork.

Clone your new forked repository to your local computer

After the following steps, you will have a complete copy of your forked repo on your local computer.

  1. Navigate to your newly cloned repository in Gitlab (if it is not already open).
  2. Next to the blue "New File" and "Upload File" buttons select and copy the URL to clone the repo: Image of the clone URL location
  3. Open SmartGit.
  4. Select Repository > Clone from the application menu.
  5. Paste the clone URL into the Repository URL: Image of Remote Repository URL textbox
  6. Click "Continue."
  7. On the following screen make sure "Include modules" and "Fetch all Heads and Tags" are both checked.
  8. In the next screen enter or select the folder where you want to save your cloned repo and click "Finish."

Create a new working branch from master

When working with git repositories, it is best practice to create a new working branch upon which to apply your new work. This keeps the master branch clean and makes it easier to keep your forked repository in sync with the main/source repository. If you apply all of your changes to the master branch, you could end up with conflicts with the main/source branch that must be reconciled by hand. Therefore, the following steps walk you through setting up your new working branch.

  1. Open SmartGit.
  2. Locate the pane labeled "Repositories" and make sure you have selected and activated the en_ulb_tagged repo.
  3. Locate the "Branches" pane and select and double click the "master" branch or right click it and select "Checkout".
  4. Select Branch > Add Branch from the SmartGit menu OR press F7 to open the Add Branch dialog.
  5. Enter a name for your new branch. Keep your branch name simple, but expressive. Also, make it lowercase. For example, "colossians-check-edits" would be a good name for working on the final edits for Colossians.
  6. Click "Add Branch & Checkout" to create your new branch and checkout the branch. Checking out a branch makes that branch active so that any commits you make get applied to the new branch instead of master.

NOTE: You will want to create separate branches for the various stages of your work. Doing so makes tracking your changes and organizing updates to the main repository easier. Trying to apply all of your work to one large branch can make merging work back to the main repo difficult as the work progresses.

Commit progress to your working branch

When you commit your work is entirely up to you, but it makes sense to make commits whenever there is a natural/clear transition. For instance, if you change the structure of the XML by changing the name of one of the attributes but you also need to update the translation in the tags separate the two pieces into separate commits. Make the structural changes and commit the work to your working branch. Then work on the translation issues and create another commit. That way, if we need to track down the source of a change it will be easier.

  1. With SmartGit open and the repository active, double click on your working branch to check it out.
  2. Assuming that you have already made your edits to the source files, locate your changed files in the "Files" pane.
  3. Highlight the file(s) you want to include in the new commit.
  4. With the files highlighted, right click select "Commit" from the popup context menu.
  5. In the opened commit dialog, select the files you want to include in this commit and add a commit message. Make sure your commit message indicates the changes you are saving.
  6. Click "Commit". You should now see your new commit at the top of the tree in the Graph pane.

Push your working branch to Gitlab

Now that you have a shiny new branch with some changes that are ready to be published to the main repository, you will need to push your new branch up to Gitlab.

  1. In the branches pane locate and highlight your current working branch.
  2. Right click on your branch name to bring up the popup context menu.
  3. Click "Push To".
  4. In the "Push 'my-new-branch-name' to a remote repository" dialog that opens make sure the "Target Repository" is set to "origin" and "Push To:" is set to "Tracked or matching branch".
  5. Click "Push".

Your changes are now on your forked repository on the Gitlab server.

Create a Pull Request

To move your changes into the main repository you must create a pull request. A pull request notifies the main repo administrators that you have new changes suggested and gives them an opportunity to review and approve your changes.

  1. Sign-in to Gitlab: https://content.bibletranslationtools.org
  2. On the landing page after you sign-in you will see a list of your activity on the left and a list of the repositories you have access to on the right. Look for /en_ulb_tagged and click ( = the your Gitlab username).
  3. Click the "Pull Requests" tab. Pull Request Tab
  4. Click the green "New Pull Request" button. New pull request button
  5. In the newly opened form, give the PR a name and enter a description to summarize the changes you are suggesting. Pull Request Form
  6. Click "Save".

You have now created a new pull request.