Pawan kumar sharma
Pawan kumar sharma

Reputation: 704

git error cannot handle Commit as a builtin

I tried this command

$ git Commit -m "With ViewPager"

and getting this error

fatal: cannot handle Commit as a builtin

Upvotes: 15

Views: 19387

Answers (6)

pradeepa kathiresan
pradeepa kathiresan

Reputation: 99

Also it appears when you use any of the character as capital, eg: Commit It's Case sensitive solution is

  1. git status
  2. git add
  3. git commit
  4. git push

Upvotes: 0

pradeepa kathiresan
pradeepa kathiresan

Reputation: 99

I mean the solution is always smallcase, as its case sensitive.

  1. git status
  2. git add
  3. git commit
  4. git push

Upvotes: 2

git command consider case sensitivity (https://learn.microsoft.com/en-us/azure/devops/repos/git/case-sensitivity?view=azure-devops).

so use snake case command "commit".

Upvotes: 0

Vivek Nuna
Vivek Nuna

Reputation: 1

I was also getting a similar error for CLONE, fixed it by changing to clone

Upvotes: 1

GBGOLC
GBGOLC

Reputation: 600

This error will also occur for other functions such as:

GIT STATUS
GIT ADD
GIT COMMIT
GIT PUSH

Always use lower case lettering for commands.

Upvotes: 8

the_coder_inside
the_coder_inside

Reputation: 261

Use commit instead of Commit :)

Upvotes: 20

Related Questions