Changes

Jump to navigation Jump to search
no edit summary
Line 14: Line 14:  
=== How do I create a new project? ===
 
=== How do I create a new project? ===
   −
First set up the project in gitorious as per above.
+
:First set up the project in gitorious as per above.
   −
Go to your project directory and type:
+
:Go to your project directory and type:
 
  git init
 
  git init
   Line 24: Line 24:  
  git push origin master
 
  git push origin master
   −
Hence forth, just use:
+
:Hence forth, just use:
 
  git commit
 
  git commit
 
  git push
 
  git push
   −
You can also use
+
:You can also use
 
  git commit -a -m "I am the commit message"
 
  git commit -a -m "I am the commit message"
to avoid opening an editor.
+
:to avoid opening an editor.
    
=== How do I create a fork of an existing project? ===
 
=== How do I create a fork of an existing project? ===
Line 46: Line 46:  
----
 
----
   −
in the .git/config file, you may have to change:
+
:in the .git/config file, you may have to change:
 
  [remote "origin"]
 
  [remote "origin"]
 
     url = git://git.sugarlabs.org/yourproject/yourbranch.git
 
     url = git://git.sugarlabs.org/yourproject/yourbranch.git
   −
to:
+
:to:
 
  [remote "origin"]
 
  [remote "origin"]
 
     url = gitorious@git.sugarlabs.org:yourproject/yourbranch.git
 
     url = gitorious@git.sugarlabs.org:yourproject/yourbranch.git
Line 111: Line 111:  
=== How do I generate a patch? ===
 
=== How do I generate a patch? ===
 
  git diff > blah.patch
 
  git diff > blah.patch
or
+
:or
 
  diff -rup [old] [new]
 
  diff -rup [old] [new]
  

Navigation menu