Re: Git commands
- From: Claude Paroz <claude 2xlibre net>
- To: Matej Urban <matej urban gmail com>
- Cc: gnome-i18n gnome org
- Subject: Re: Git commands
- Date: Mon, 21 Jun 2010 09:43:38 +0200
Le dimanche 20 juin 2010 à 21:28 +0200, Matej Urban a écrit :
> Hello,
> I push translations for a few people and have 2 questions ...
>
> 1. I'd like to make my life a bit easier with aliases, but can not
> figure out how to make correct alias of a commit message:
>
> git config --global alias.name "commit sl.po -m "Updated translation"
> --author "Name SecondName <name secondname email com>""
>
> I guess the problems are not escaped " ?
>
>
> 2. If I understand correctly then executing $git name will do upper
> git commit sl.po -m "Updated translation" --author "Name SecondName
> <name secondname email com>", right? So, how would I need to write my
> alias to execute git commit name? to execute that command?
>
Use backslash to escape quotes.
E.g.:
git config --global alias.commitsl "commit sl.po -m \"Updated Slovenian
translation\" --author \"Name SecondName <name secondname email com>\""
You can also directly edit the [alias] section of your ~/.gitconfig
file.
HTH,
Claude
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]