Pushing changes

2 views
Skip to first unread message

Kristina Chodorow

unread,
Oct 7, 2010, 11:17:50 AM10/7/10
to mongo-node...@googlegroups.com
Once you've written code and/or documentation, here's how to get it from your local machine to the main node.js driver project:
  • Go into your node-mongodb-native directory (where you made your changes).
  • Type "git gui" on the command line.  A gui will pop up, showing all of the changes you've made.
  • In the upper left hand corner there are a list of files you've changed, added, or removed.  Click on the icon next to the files with changes that you like and want to push out to the world (click on the filename to see the changes you've made).  They'll be moved down to the lower-left-hand corner, called your "staging area."
  • Once you're happy with your staging area, write a 1 sentence description of your change in the text box.
  • Click on the commit button.
  • Close git gui.
  • On the command line, type "git push origin master".
  • Go to http://github.com/your-username/node-mongodb-native.  Look, there's your commit!
  • Click "Pull request" in the upper-right-hand corner.
  • Confirm that you want that commit merged into the http://github.com/kchodorow-corp/node-mongodb-native project.
The pull request alerts me that you want to push your changes to the main repository.  I'll look at your change, make sure you haven't replaced all the code with swear words, and merge in your changes.  I may comment on your changes or make suggestions, you should get an email from Github if I do.

Once you've made a couple commits this way and you know what you're doing, I'll give you commit access to the main repository and we can skip the step where I review your changes.

Let me know if you have any questions, git can be confusing.
Reply all
Reply to author
Forward
0 new messages