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
Last revision Both sides next revision
howto-git [2014-10-02 12:29]
glen
howto-git [2014-10-27 06:14]
glen [Set your configuration] github push under your uid
Line 25: Line 25:
 </​code>​ </​code>​
  
-One can do it per package too in each ''​./​.git/​config''​ file: +One can do it per package too in each ''​./​.git/​config''​ file: <file ini> 
-  [user] +[user] 
-        email = <​your_login>​@pld-linux.org +    email = <​your_login>​@pld-linux.org 
-        name = Your Name+    name = Your Name 
 +</​file>​
 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.
  
 If you have an RW access to PLD Linux repositories please use If you have an RW access to PLD Linux repositories please use
-your PLD Linux alias <​your_login>​@pld-linux.org>​ as email.+your PLD Linux alias ''​<​your_login>​@pld-linux.org>​'' ​as email. 
 + 
 +If you have github account and wish github mirror being updated with your credentials (referencing github resources, closing pull request), you may wish to setup SSH Agent forwarding so that github sync is performed with your credentials. You need to have same key or github key in ssh agent. Such ''​~/​.ssh/​config''​ will enable SSH agent forwarding when pushing: <file - ~/​.ssh/​config>​ 
 +Host git.pld-linux.org 
 +    ForwardAgent ​   yes 
 +</​file>​
  
 Additionally some useful git config: Additionally some useful git config:
  
-Enable colored ​difs ([[http://​live.gnome.org/​Git/​Developers|reference]]) <​code>​+Enable colored ​diffs ([[http://​live.gnome.org/​Git/​Developers|reference]]) <​code>​
 git config --global color.ui auto git config --global color.ui auto
 </​code>​ </​code>​
Line 47: Line 53:
 </​code>​ </​code>​
  
-when pushing in git-core-1.8.0 ([[http://​lists.pld-linux.org/​mailman/​pipermail/​pld-devel-en/​2012-October/​023231.html|reference]])+when pushing in git-core ​>= 1.8.0 ([[http://​lists.pld-linux.org/​mailman/​pipermail/​pld-devel-en/​2012-October/​023231.html|reference]])
 <​code>​ <​code>​
 git config --global push.default simple git config --global push.default simple
howto-git.txt · Last modified: 2016-03-21 10:36 by glen