R
R
R02021-06-25 18:41:36
git
R0, 2021-06-25 18:41:36

Why might aliases not work?

win7
via search found all .gitconfig in each added

[alias]
  i= 'init'
  a= ' add *'
  c= 'commit -m '
  r0= 'commit -m 'r0''
  p= 'push'

and
hist= 'git hist'
  st= 'git status'
  ga='git add '
  gb='git branch '
  gc='git commit'
  gd='git diff'
  gco='git checkout '
  gs='git status '
  gi= 'git init'


The first ones work, but the second ones, which include git, do not work.

quote from Console Emulator))
"gs" is not an internal or external
command, operable program or batch file.

Actually the question is, what happens like this?60d5f92ac0815960436101.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
egor_nullptr, 2021-06-25
@egor_nullptr

Obviously the commands in the second package don't need to contain git if you add them to .gitconfig. Or you need to add them to .bash_aliases (or a similar file if you do not have bash).
For example for .bash_aliases:

alias gs="git status"
alias ga="git add"
alias gb="git branch"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question