Git Basics: Difference between revisions

changed from just GitHub to being appropriate for either GitHub or Gitorious (the latter being Open Source, while GitHub is not)
imported>Shauna
(Created page with "== Installing Git == * Windows * OS X * [[Open_S...")
 
imported>Wolftune
(changed from just GitHub to being appropriate for either GitHub or Gitorious (the latter being Open Source, while GitHub is not))
 
Line 5:
* [[Open_Source_Comes_to_Campus/Harvard/Laptop_setup/Linux_git|Linux]]
 
== To fork/clone a project on Github or Gitorious ==
 
* Start out logged in to Github or Gitorious
 
* Visit the project you want to fork/clone
 
* Click the "Fork" (GitHub) or "Clone" (Gitorious) button in the top-right
 
* Wait for the animation to conclude
Line 19:
== Now, clone to it to your computer ==
 
* On the right sidepage, look forfind the clone URL which starts with "git@"
 
* Copy thatthe URL to the clipboard
 
* Open a terminal and type: "git clone " (including the space, but not including the quotation marks)
Line 57:
(Alternatively, you may be prompted to set your name and email address. This means you missed a step in setting up git. No worries, you can [https://openhatch.org/wiki/Open_Source_Comes_to_Campus/Harvard/Laptop_setup/Windows_git#Set_your_user_name_and_email set them now].)
 
You can now visit Github/Gitorious and make sure your personal fork contains those changes.
 
== Create pull request ==
 
Visit your personal fork and click the "Pull requests" button on the right (GitHub) or the "Request Merge" button (Gitorious). This will offer you the chance to make a new pull request by clicking on "New pull request" (GitHub) or direct to the form (Gitorious). Explain what you did, and leave a remark that this relates to any issue tracker issues or pages that prompted you to contribute.
 
Now, get feedback from the project's maintainer and eagerly await your pull request getting merged!
Anonymous user