Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
contribute:dev:git:tips-and-tricks [2014/03/05 15:53] – [Pull over git:// push with ssh://] nick | contribute: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 '' | ||
- | |||
- | < | ||
- | Host git.xfce.org | ||
- | User $USERNAME | ||
- | </ | ||
- | |||
- | ===== 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 < | ||
- | |||
- | <file bash> | ||
- | git config --global url." | ||
- | </ | ||
===== Shortcut URL's ===== | ===== Shortcut URL's ===== | ||
Line 22: | Line 7: | ||
<file bash> | <file bash> | ||
- | git config --global url." | + | git config --global url." |
</ | </ | ||