Submitting a language file through git

3 views
Skip to first unread message

Aaron Newton

unread,
Feb 15, 2009, 10:14:33 PM2/15/09
to MooTools Lang
Git works like SVN. It's nowhere near as friendly to use, mostly
because all of the tools are command line tools - no fancy UIs.

There are a lot of tutorials on how to use git on the web so I'm not
going to try and teach it to you here. If you are familiar with git
you can simply fork a branch (in this case, for now, fork mine:
http://github.com/anutron/mootools-more/tree) make changes by altering
or adding files, then commit your changes. When you're ready to send
them to us to include, you need to push your changes back up to
github, then send a pull request to me or one of the other MooTools-
more developers. Here's what it looks like when I do it:

cd ~/Development
mkdir mootools-more
cd mootools-more
//here you would add a remote for your branch, not mine
git remote add anutron git://github.com/anutron/mootools-more.git
git pull anutron master:local-master
//you are now working on a local branch called local-master
//make changes, add files, etc. then commit all the files
git commit -a
//when you're ready, push them back to git
git push anutron local-master:master
//now you can send me a pull request on github

I think I have all that right. There's an easier way if you don't want
to fool around with the command line tools though, so long as you
don't have to add a file (this method is only useful to submit edits).
Simply go to github, signup, and then visit my branch:

http://github.com/anutron/mootools-more/tree

Click "fork" and now you'll have your own copy
Browse through the directory and find the file you want to submit a
change to. Then click "edit" in the upper right hand corner. Make your
changes and enter a message in the input at the bottom for the commit
message. Save your file. Then send a pull request.

This method doesn't have a way to add a file that I can see. For new
files, if you don't want to fool around with git, just use gist
(http://gist.github.com) and post the link here.

procyon

unread,
Feb 15, 2009, 11:41:03 PM2/15/09
to MooTools Lang
Aaron, thank you very much for the steps on using git, very
appreciated :)

Alexandre Rocha

procyon

unread,
Feb 16, 2009, 5:21:20 PM2/16/09
to MooTools Lang
For those using Windows and are not confortable with command line, can
install <a href="http://code.google.com/p/
gitextensions/"GitExtensions</a> or <a href="">TortoiseGit</a> (Must
install <a href="http://code.google.com/p/msysgit/">msysgit 1.6.1</a>
before).

Hope this can help someone :)

Cheers,

Alexandre Rocha

procyon

unread,
Feb 16, 2009, 5:26:39 PM2/16/09
to MooTools Lang
Sorry, my last post, not very clean! Here again:

For those using Windows and are not confortable with command line:
install GitExtensions (http://code.google.com/p/
gitextensions) or TortoiseGit (http://code.google.com/p/tortoisegit/);
For TortoiseGit, you must
install msysGit 1.6.1 (http://code.google.com/p/msysgit/) before.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages