User Tools

Site Tools


howto-git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
howto-git [2013-11-04 08:43]
glen [Download package]
howto-git [2014-10-02 12:29]
glen
Line 7: Line 7:
 =====Prepare working dirs==== =====Prepare working dirs====
  
-Move existing ''​~/​rpm''​ directory:+Move existing ​(CVS-based) ​''​~/​rpm''​ directory:
   mv ~/rpm ~/rpm.cvs   mv ~/rpm ~/rpm.cvs
   ​   ​
Line 27: Line 27:
 One can do it per package too in each ''​./​.git/​config''​ file: One can do it per package too in each ''​./​.git/​config''​ file:
   [user]   [user]
-        email =<​your_login>​@pld-linux.org+        email = <​your_login>​@pld-linux.org
         name = Your Name         name = Your Name
 but as for now one needs to set it in each package fetched. but as for now one needs to set it in each package fetched.
Line 40: Line 40:
 </​code>​ </​code>​
  
-Add ''​git st'' ​alias ([[https://​git.wiki.kernel.org/​index.php/​Aliases|reference]]) <​code>​+Add ''​git st'' ​and some other aliases ​([[https://​git.wiki.kernel.org/​index.php/​Aliases|reference]]) <​code>​
 git config --global alias.st status git config --global alias.st status
 git config --global alias.ci commit git config --global alias.ci commit
 git config --global alias.up pull --rebase git config --global alias.up pull --rebase
 +git config --global alias.ssh '!ssh git@git.pld-linux.org'​
 </​code>​ </​code>​
  
Line 116: Line 117:
    git push --dry-run origin master    git push --dry-run origin master
  
 +===== Modify commit messages =====
 +
 +commit messages can be annotated with ''​git notes''​ feature.
 +
 +Read more on mailing list: http://​lists.pld-linux.org/​mailman/​pipermail/​pld-devel-en/​2012-July/​022786.html
 =====Update your repository===== =====Update your repository=====
  
Line 196: Line 202:
 Often it is good idea to start working over new spec starting from spec templates available: Often it is good idea to start working over new spec starting from spec templates available:
   git clone git://​git.pld-linux.org/​projects/​template-specs.git   git clone git://​git.pld-linux.org/​projects/​template-specs.git
 +
 +===== Rename package =====
 +Assume we want lowercase python-Flask:​
 +  $ ssh git@git.pld-linux.org ​  move python-Flask ​ python-flask
 +try build to download new version:
 +  nice builder -v python-flask
 +rename spec file:
 +  $ cd python-flask/​
 +  $ git mv python-Flask.spec ​ python-flask.spec ​
 +Update spec with name change and commit changes.
  
 =====More information on git===== =====More information on git=====
howto-git.txt ยท Last modified: 2016-03-21 10:36 by glen