Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
dev:howto:git [2009/08/14 00:40] – add info about push.default kelnos | dev:howto:git [2009/08/14 00:43] – tips and tricks section moved to dev:howto:git-tips-and-tricks kelnos | ||
---|---|---|---|
Line 93: | Line 93: | ||
===== Tips and Tricks ===== | ===== Tips and Tricks ===== | ||
- | ==== Shortcut URLS ==== | + | See [[dev:howto:git-tips-and-tricks]]. |
- | + | ||
- | If you clone a lot of Xfce repositories, | + | |
- | + | ||
- | < | + | |
- | + | ||
- | After this, you'll be able to do, for example: | + | |
- | + | ||
- | < | + | |
- | + | ||
- | and Git will automatically rewrite it to the correct URL. You can of course do this with git: and http: URLs as well. | + | |
- | + | ||
- | ==== Different Local Username? ==== | + | |
- | + | ||
- | If your ssh username is not the same as your local username, you can make an entry in '' | + | |
- | + | ||
- | < | + | |
- | User $USERNAME</ | + | |
- | + | ||
- | Of course, replace '' | + | |
- | + | ||
- | ==== Branch Auto-pushing ==== | + | |
- | + | ||
- | If you have a relatively new version of Git on your machine, you may get this message after running '' | + | |
- | + | ||
- | < | + | |
- | warning: has not configured any push refspecs. The default action in this | + | |
- | warning: case is to push all matching refspecs, that is, all branches | + | |
- | warning: that exist both locally and remotely will be updated. | + | |
- | warning: not necessarily be what you want to happen. | + | |
- | warning: | + | |
- | warning: You can specify what action you want to take in this case, and | + | |
- | warning: avoid seeing this message again, by configuring ' | + | |
- | warning: | + | |
- | warning: | + | |
- | warning: | + | |
- | warning: | + | |
- | + | ||
- | This warning is harmless, but you might want to change the value both to make your pushes " | + | |
- | + | ||
- | < | + | |
- | + | ||
- | My rationale here is: | + | |
- | - Using ' | + | |
- | - Using ' | + | |
- | - Using ' | + | |
- | - Using ' | + | |
===== Migrating From git-svn Clones ===== | ===== Migrating From git-svn Clones ===== |