Editing DevelopingWithGit

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 8: Line 8:
 
== Creating your local repository of GNU Radio ==
 
== Creating your local repository of GNU Radio ==
  
First, head over to the github repository of GNU Radio at https://github.com/gnuradio/gnuradio, and click the "fork" button at the top. This will automatically create a repository in your github account, called <code>gnuradio</code>. You basically have a copy of the official repository, but you can write to this one.
+
First, head over to the github repository of GNU Radio at https://github.com/gnuradio/gnuradio, and click the &quot;fork&quot; button at the top. This will automatically create a repository in your github account, called <code>gnuradio</code>. You basically have a copy of the official repository, but you can write to this one.
  
 
=== Clone the repository ===
 
=== Clone the repository ===
  
Before you can do anything, you need the repository on your local hard drive ("cloning").<br />
+
Before you can do anything, you need the repository on your local hard drive (&quot;cloning&quot;).<br />
 
github will tell you the correct URL, most likely, it's something like this:
 
github will tell you the correct URL, most likely, it's something like this:
  
Line 24: Line 24:
 
First, you need to set up an identity:
 
First, you need to set up an identity:
  
<pre>$ git config user.name "Your Name"
+
<pre>$ git config user.name &quot;Your Name&quot;
 
$ git config user.email your@email.abc</pre>
 
$ git config user.email your@email.abc</pre>
 
On github, you also need to set up an SSH key; github has excellent documentation on how to do that.
 
On github, you also need to set up an SSH key; github has excellent documentation on how to do that.
Line 86: Line 86:
 
# On branch heisencomp
 
# On branch heisencomp
 
# Untracked files:
 
# Untracked files:
#  (use "git add ..." to include in what will be committed)
+
#  (use &quot;git add ...&quot; to include in what will be committed)
 
#
 
#
 
#      heisenberg.c
 
#      heisenberg.c
nothing added to commit but untracked files present (use "git add" to track)</pre>
+
nothing added to commit but untracked files present (use &quot;git add&quot; to track)</pre>
 
So, there's a new file but git doesn't know what to do with it. So, you add it to your repository:
 
So, there's a new file but git doesn't know what to do with it. So, you add it to your repository:
  
Line 125: Line 125:
 
# Fork your repo off of our gnuradio repo, then create a remote branch on github with your changes
 
# Fork your repo off of our gnuradio repo, then create a remote branch on github with your changes
 
# Go onto the github site, visit your repository
 
# Go onto the github site, visit your repository
# There's a "Pull Request" button that will do all the work for you.
+
# There's a &quot;Pull Request&quot; button that will do all the work for you.
  
 
=== Tell us about your branch ===
 
=== Tell us about your branch ===
Line 145: Line 145:
 
== Converting From Old Subversion Repository to the New Git Repository ==
 
== Converting From Old Subversion Repository to the New Git Repository ==
  
The subversion imported commits have the revision number at the end of the description in the "git-svn-id" line. For example, you can create and checkout a new branch with svn revision 10184 by doing the following.
+
The subversion imported commits have the revision number at the end of the description in the &quot;git-svn-id&quot; line. For example, you can create and checkout a new branch with svn revision 10184 by doing the following.
  
 
# Find the commit hash from the git-svn-id.
 
# Find the commit hash from the git-svn-id.

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)