Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
dev:howto:git [2009/08/13 23:46] – add url to DOAP website kelnos | dev:howto:git [2009/08/14 04:26] – 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 '' | + | |
===== Migrating From git-svn Clones ===== | ===== Migrating From git-svn Clones ===== | ||
Line 127: | Line 108: | ||
$ git checkout master | $ git checkout master | ||
$ git checkout -b new-drawing | $ git checkout -b new-drawing | ||
- | $ git pull ../ | + | $ git fetch ../ |
- | $ git reset --hard new-drawing | + | |
$ git log tmpbranch</ | $ git log tmpbranch</ | ||
Line 142: | Line 122: | ||
< | < | ||
$ git cherry-pick e3633d52774bd9a2a20ef9af37d3f72f964a2f54</ | $ git cherry-pick e3633d52774bd9a2a20ef9af37d3f72f964a2f54</ | ||
+ | |||
+ | (Note: if there' | ||
Now, if I got any merge errors after one of the cherry pick commands, I'd have to stop there and fix it up first: | Now, if I got any merge errors after one of the cherry pick commands, I'd have to stop there and fix it up first: | ||
Line 160: | Line 142: | ||
You'll have to repeat this process for any other local branch you have in the old git-svn clone. | You'll have to repeat this process for any other local branch you have in the old git-svn clone. | ||
+ | |||
+ | After you finish with all branches in a particular module, you may want to run: | ||
+ | |||
+ | < | ||
+ | |||
+ | This will remove all the dangling commits, trees, and blobs left over from the probably-large number of mismatched objects discarded when you deleted tmpbranch. |