RefreshCapcha

Author Topic: How do I add scripts ?  (Read 9040 times)

Offline Bovski

  • Head Cider Tester
  • Hero Member
  • *****
  • Posts: 673
  • Karma: +189/-0
  • High Five Me
    • View Profile
    • Warez The Index
How do I add scripts ?
« on: November 05, 2012, 05:46:46 am »
Where the hell do I click to add a new script?

Am I going Blind?




Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: How do I add scripts ?
« Reply #1 on: November 05, 2012, 07:15:15 am »
i did some research, while you can directly 'edit', its not possible to 'add/delete' from GitHub.. you're technically suppose to manage this GIT thing via the command line 'git' and learn a bunch of the commands to do so..

anyway, taking this a step further, I invited you to this:  https://c9.io/convivea/bit-che-2-scripts

basically, its an online IDE with GIT support for GitHub.   So, once you have an idea of how to 'git pull',  'git add', 'git rm',  'git commit',  'git push'.. etc, then yes, its possible to create a new file online, edit it, and push to the GitHub (which then syncs to the convivea default script pack automatically).

its a little bit scary, and while I'm learning Git, i hit a few wrong commands. but the only changes made to the site are what happen after you 'git commit' and then 'git push', so I was able to do the commands that wipe out my local changes and start again after pulling the latest version 'git pull'...

meh, it works, its a little more technical than i was hoping.

not sure if there are any other online Git editors 'for dummys' :)
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: How do I add scripts ?
« Reply #2 on: November 05, 2012, 07:18:22 am »
here is a quick guide which covers some of what I was talking about:

http://stackoverflow.com/questions/8775850/how-to-add-files-and-folder-to-github-repo

  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: How do I add scripts ?
« Reply #3 on: November 05, 2012, 07:31:21 am »
and this is actually pretty helpful too:   http://sirupsen.com/starting-with-git/
  -  https://convivea.com  -   And...  boom goes the dynamite.

Offline chip!

  • Bad Ass
  • Administrator
  • Unstoppable
  • *****
  • Posts: 2301
  • Karma: +629/-6
    • View Profile
Re: How do I add scripts ?
« Reply #4 on: November 05, 2012, 01:00:24 pm »
ok, so if you use that Cloud 9 site (i like it)...

TO ADD A NEW FILE:

1.  make sure your files (working local repository) are up to date:  git pull

2.  upload the new file to /default folder using the GUI (several options)

3.  test that your new file is the only one not pushed to the GIT:  git status
 you should see that your new file is listed

4.  add this new file to the working local repository:   git add default/*.ini

5.  prepare what you want to in your update patch:   git checkout
it will tell you that one new file is prepped in the update patch

6.  finalize the update patch and give a description:    git commit -m "added TYPENAMEHERE.INI"

7. send the update patch to GitHub:   git push





TO EDIT A BUNCH OF FILES AND SEND THE PATCH ALL AT ONCE:


1.  make sure your files (working local repository) are up to date:  git pull

2. edit the files using the GUI (and save them)

3.  prepare what you want to in your update patch:   git checkout
it will tell you that one new file is prepped in the update patch

4.  finalize the update patch and give a description:    git commit -am "description of the update"

5. send the update patch to GitHub:   git push
« Last Edit: November 05, 2012, 01:37:09 pm by chip! »
  -  https://convivea.com  -   And...  boom goes the dynamite.