Git-related error Summary

Source: Internet
Author: User

Git-related error Summary

 

Garbled Chinese characters entered by the ls command in git

In Git Bash, enterLs commandTo properly display the Chinese file name, you only need to add a line in the file etc \ git-completion.bash under the git installation directory

alias ls='ls --show-control-chars --color=auto'

 

Git push error: warning: push. default is unset

The 'matching 'parameter is the default behavior of Git 1.x. It means that if you execute git push but do not specify a branch, it will push all your local branches to the matched branches in the remote repository. Git 2.x is simple by default, which means that when no branch is specified for executing git push, only the current branch will be pushed to the code you obtained using git pull.

Modify the behavior of git push as prompted: git config -- global push. default matching. Execute git push again to solve the problem.

Pipi Blog

Error "pathspec 'branch' did not match any file (s) known to git ."

 

git checkout mastergit pullgit checkout new_branch

 

An error occurs when git submits a large file.
Error: RPC failed; result = 22, HTTP code = 411
Fatal: The remote end hung up unexpectedly
Fatal: The remote end hung up unexpectedly
Everything up-to-date
In this case, first change the git transmission byte limit.
Git config http. postBuffer 524288000


Another error may occur during transmission at this time.
Error: RPC failed; result = 22, HTTP code = 413
Fatal: The remote end hung up unexpectedly
Fatal: The remote end hung up unexpectedly
Everything up-to-date
These two errors look similar. One is 411, and the other is 413.
Add the key following this error.
First, key-keygen generates the key, and then copies the generated key to the corresponding location under your account in git.

git push ssh://192.168.64.250/eccp.git branch

from:http://blog.csdn.net/pipisorry/article/details/46958699

Ref: solves git Chinese garbled characters


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.