Tukui - Forums » Technical Support » Tukui / Github - The Guide
This topic is sticky
This topic is not a support question


  1. Will
    Donor

    For V11+

    Use the github help pages to install Git for your specific OS.
    Windows (Make sure you choose "Git Bash Here" and "Git Init Here" options during install)
    Git-1.7.0.2-preview20100309.exe - was the version used to test this guide on windows.
    Mac
    Linux

    For Windows: Open "Git Bash" - After I installed, there was an Icon on my Desktop for this.
    For *nix Systems: Open a Terminal window

    Change to your WoW Directory, for example:

    $ cd /c/Users/Public/Games/World\ of\ Warcraft/Interface/AddOns/

    Now we init your git!

    $ git init
    $ touch .gitignore
    $ echo '*
    !Tuk* > .gitignore

    -- Yes, you do press [Enter] after the '* and Tuk* lines

    $ git remote add tukz git://github.com/tukz/Tukui.git
    $ git fetch tukz
    $ git merge tukz/master

    Make some changes...

    $ git commit -a

    -- This will display a screen similar to vi for you to enter your commit notes
    -- press i
    -- [Insert Your notes]
    -- press [ESC]
    -- press :x [ENTER]

    This will save your changes, when Tukz makes an update, you run:

    $ git fetch tukz

    -- If there are NO updates, you will just get another prompt
    -- if there are updates, you will see some data and tukz/master

    $ git merge tukz/master

    -- Any Conflicts created by merge will be listed, you then open those files (BOTH your code and Tukz code will be there) fix them up, and commit

    Some other useful git commands

    $ git add -f Tukui/config/test.lua

    -- If you add new files

    $ git status

    -- To see if you have any commits or adds that you need to do

    Posted 2 months ago #

  2. Tukz
    Overlord

    sticky for users who want to use this great software. Edited a bit aswell, feel free to edit it if i made mistake in command line showed in blockquote. Thank you devxwill. :)

    Posted 2 months ago #

  3. Mgssidley
    Member

    I tried this and got up to the 3rd area:

    1
    2
    3
    
    $ git remote add tukz git://github.com/tukz/Tukui.git
    $ git fetch tukz
    $ git merge tukz/master

    I run "git fetch tukz" and I get the error

    fatal: the remote end hung up unexpectedly

    Antivirus and firewall disabled so that isn't the problem. It's not a proxy either. Any ideas?

    EDIT:I found out the problem. When I entered the url for fetching Tukui, I didn't capitalize the T in Tukui.git. Seems that causes it to fail.

    Posted 1 week ago #

  4. Theldris
    Donor

    little tips when you commit, put this instead, it's easier and faster to do

    git commit -a -m "Your commit comments"

    that's it you just commited your changes ;)

    Posted 1 week ago #

  5. Existe
    Member

    -- Any Conflicts created by merge will be listed, you then open those files (BOTH your code and Tukz code will be there) fix them up, and commit

    This is where I get lost in using this tool. I go and look at the files placed into World of Warcraft/Tukui and I do not see both my code and Tukz code and after I try to commit I get the following errors:

    fatal: 'commit' is not possible because you have unmerged files.
    Please, fix them up in the work tree, and then use 'git add/rm <file>' as
    appropriate to mark resolution and make a commit, or use 'git commit -a'.

    I tried using the git add but that does not seem to work.

    So the question I have is what do you do between "git merge tukz/master " and "git commit -a" to get it to work?

    Posted 6 days ago #

  6. Swanson
    Member

    It doesn't work. I had 11.26 running and did like you said.

    "Resolving deltas: 100% (1588/1588), done.
    From git://github.com/tukz/Tukui
    * [new branch] master -> tukz/master"

    Then I ran "git merge tukz/master" and just got a new prompt.

    When I started my game I still had 11.26 and not 11.30. Any suggestions?

    Posted 5 days ago #

  7. Theldris
    Donor

    with tuk v11 you need to go to AddOns folder to commit/update tuk

    $ cd /c/Users/Public/Games/World\ of\ Warcraft/Interface/AddOns

    Posted 4 days ago #

  8. Existe
    Member

    Theldris said:
    with tuk v11 you need to go to AddOns folder to commit/update tuk

    THANK YOU! Working as intended now.

    Posted 4 days ago #

  9. mason092
    Member

    I'm using this with Cygwin instead of wingit. It works great! It's much easier to type a few lines into bash than it is to update by downloading it normally, especially if you've changed anything.

    Posted 4 days ago #

  10. Swanson
    Member

    Alright, I will post exacly what I do and maybe you guys can help me out here, cus' it replaces my config.lua and media.lua all the time I use git to update.

    First off I start the program and I locate my gaming folder, which as of now would be:
    cd /d/Spel/World\ of\ Warcraft/Interface/AddOns <pressing enter>

    Then I write the next set of lines, which fyi I have no clue what so ever their purpose.

    git init <enter>
    touch .gitignore <enter>
    echo '* <enter>
    !Interface/AddOns/Tuk* <enter>
    !Fonts/' > .gitignore <enter>

    Adding the remote address.

    git remote add tukz git://github.com/tukz/Tukui.git
    git fetch tukz (this is working, it downloads some things)
    git merge tukz/master (this also works)

    Then I write:

    git commit -a

    And I get into the commit window. Here I always see those two files, config.lua and media.lua. Can someone explain to me what to do while in this stage, to actually be able to save my settings in there etc?

    Thanks in advance,
    Swanson

    Posted 3 days ago #

  11. Tukz
    Overlord

    Swanson said:
    Alright, I will post exacly what I do and maybe you guys can help me out here, cus' it replaces my config.lua and media.lua all the time I use git to update.

    First off I start the program and I locate my gaming folder, which as of now would be:
    cd /d/Spel/World\ of\ Warcraft/Interface/AddOns <pressing enter>

    Then I write the next set of lines, which fyi I have no clue what so ever their purpose.

    Adding the remote address.

    Then I write:

    And I get into the commit window. Here I always see those two files, config.lua and media.lua. Can someone explain to me what to do while in this stage, to actually be able to save my settings in there etc?

    Thanks in advance,
    Swanson

    Updated 5 mins ago for v11 release. Relook and redo step.

    Posted 3 days ago #

  12. Duffed
    VIP

    Thanks for the guide .. can someone explain me like i would be 6 years old how to use github for my own? I dont get it but it would be nice to see .. :)

    Posted 2 days ago #

  13. Swanson
    Member

    $ git init
    $ touch .gitignore
    $ echo '*
    !Tuk* > .gitignore

    Nice to see that you re-wrote the guide to fit for v11! <thumbs up> But when I try this out, I get stuck at the echo. When you write "echo '*" the § changes to a > and you go ahead and write "!Tuk* > .gitignore" and press enter. But after that I'm still seeing > and I don't know how to get back to the normal thing with the §-mark.

    Posted 1 day ago #

  14. Flur
    Member

    hi ^^

    I do not know what I'm doing wrong .. but it dosn't work for me :(

    what i do:

    $ cd /c/Games/World\ of\ Warcraft/Interface/AddOns/ (ENTER)
    ....@....-PC /c/Games/World\ of\ Warcraft/Interface/AddOns (master)

    $ git init (ENTER)
    Reinitialized existing Git repository in c:/Games/World of Warcraft/Interface/AddOns/ .git/
    ....@....-PC /c/Games/World\ of\ Warcraft/Interface/AddOns (master)
    $ touch .gitignore (ENTER)
    ....@....-PC /c/Games/World\ of\ Warcraft/Interface/AddOns (master)
    $ echo '* (ENTER)
    >
    !Tuk*
    >
    .gitignore (ENTER)
    >

    now i dont can enter the next commands until i press "Arrow Up" and ENTER

    $ git remote add tukz git://github.com/tukz/Tukui.git (ENTER)
    fatal: remote tukz already exists.
    $ git fetch tukz (ENTER)
    fatal: Unable to look up githud.com (port 9418) (githuD.com ???)
    $ git merge tukz/master (ENTER)
    fatal: tukz/master - not something we can merge

    Posted 1 day ago #

  15. Murdrock
    Member

    !Tuk*
    >
    .gitignore (ENTER)
    >

    After that just type '* and press enter. This will get you out ;)

    Posted 1 day ago #

  16. Flur
    Member

    Murdrock said:
    !Tuk*
    >
    .gitignore (ENTER)
    >

    After that just type '* and press enter. This will get you out ;)

    ok ty :)

    now whats with the

    $ git fetch tukz (ENTER)
    fatal: Unable to look up githud.com (port 9418) (githuD.com ???)

    --EDIT:

    delete the .git folder in AddOns

    Posted 1 day ago #

Reply

You must log in to post.