Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
contribute:dev:git:tips-and-tricks [2014/03/05 15:47] – [Pull over git:// push with ssh://] nickcontribute:dev:git:tips-and-tricks [2021/04/30 09:21] (current) ochosi
Line 1: Line 1:
 ====== GIT Tips & Tricks ====== ====== GIT Tips & Tricks ======
  
-===== Different local username ===== 
  
-If your SSH username is not the same as your local username, you can make an entry in ''$HOME/.ssh/config'' (create it if it doesn't exist) so you don't have to type it each time: 
  
-<file> +===== Shortcut URL's =====
-Host git.xfce.org +
-    User $USERNAME +
-</file>+
  
-===== Pull over git:// push with ssh:// ===== 
  
-You can switch to a different protocol or location for the push command. Advantage is that you can clone a repository using <nowiki>git://git.xfce.org/...</nowikiwhich is faster than a ssh connection (no loginpermission check and encryption)but push to ssh.+<file bash> 
 +git config --global url."ssh://gitlab.xfce.org/".insteadOf xfce: 
 +</file> 
 + 
 +After thisyou'll be able to dofor example: 
  
-<file ini .gitconfig+<file bash
-[url "ssh://git@git.xfce.org"+git clone xfce:xfce/xfdesktop
-    pushInsteadOf = "git://git.xfce.org"+
 </file> </file>