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/09/02 16:43] – mike | ||
---|---|---|---|
Line 19: | Line 19: | ||
**If you are uncertain of the clone URL to use for a particular module, please find and click on the module in the listing in [[http:// | **If you are uncertain of the clone URL to use for a particular module, please find and click on the module in the listing in [[http:// | ||
- | To pull from $MODULE in $TYPE you'd use this command (where TYPE is ' | + | In short: |
- | < | + | < |
- | This will automatically set up the ' | + | or |
- | Unfortunately, | + | < |
- | Read-only clones can be obtained via: | + | '' |
- | < | + | Committers, see below. |
- | or | + | ===== Committers ===== |
- | < | + | Before you even think about pushing changes, you must set your name and email address to something valid in your **local** Git config: |
+ | |||
+ | < | ||
+ | git config --global user.email jrandom@example.com</ | ||
+ | |||
+ | **Also**, you must subscribe this address to the [[http://foo-projects.org/ | ||
+ | |||
+ | If you have a ssh account, you can clone a repository with: | ||
+ | |||
+ | < | ||
+ | |||
+ | This will automatically set up the ' | ||
- | Viewing of the repository in a web browser is provided by a CGit instance | + | Unfortunately, |
===== Translator Access ===== | ===== Translator Access ===== | ||
- | Translators | + | Translators |
+ | |||
+ | If you do not have an account, register for one at our Transifex site and inquire on [[xfce-i18n@xfce.org]] about commit access. | ||
===== Account Maintenance ===== | ===== Account Maintenance ===== | ||
Line 93: | Line 106: | ||
===== 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 121: | ||
$ 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 135: | ||
< | < | ||
$ 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 155: | ||
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. |