2

I want create more than one command in one line. Example:

git fetch && git pull

Is possible?

This is my .gitconfig:

[alias]
  rb = rebase
  s = status
  f = fetch
  p = pull
  fp = (git fetch && git pull ???)
fuzeto
  • 207
  • 1
  • 3
  • 8
  • Related [Syntax for Git aliases with multiple commands](http://stackoverflow.com/questions/18860696/syntax-for-git-aliases-with-multiple-commands) – Sascha Wolf Aug 08 '14 at 13:56

1 Answers1

1

Just prepend an exclamation mark (!):

[alias]
  fp =!git fetch && git pull
jotik
  • 17,044
  • 13
  • 58
  • 123