> From: Pierre-François CLEMENT <lik...@gmail.com>

> I don't see any other option than chaining your commands by joining them 
> with *&&* (or *;* if you want each command to be executed even if one of 
> them fails, but I doubt it).
> 
> $ git clone --recursive myproject && cd mainproject/submodule1 && touch 
> test.txt && git add test.txt && git commit && git push

For a very long sequence of commands, it might be a bit easier to do:

$ ( set -e 
    git clone --recursive myproject
    cd mainproject/submodule1
    touch test.txt
    git add test.txt
    git commit
    git push
  )

Dale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to