A
A
amorphine2016-10-28 12:28:54
git
amorphine, 2016-10-28 12:28:54

Is there a concise equivalent to chaining git commands?

git checkout master && git pull && git checkout developer && git merge master && git commit ' merge with master' && git push
Please advise.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Irina Sokolovskaya, 2016-10-28
@amorphine

Make an alias in .gitconfig:

[alias]
  gmd = "!git checkout master && git pull && git checkout developer && git merge master && git commit ' merge with master' && git push"

It can be used like this:git gmd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question