Home  >  Article  >  Development Tools  >  Everything up-to-date appears when executing the git command

Everything up-to-date appears when executing the git command

远方*
远方*Original
2022-01-31 09:42:14157browse

Git clone a project on git, create a directory in it, and then when git push, an error "Everything up-to-date" appears

Or execute git push -u origin master, an error appears "Everything up-to-date"

Cause:

1) No git add .

2) No git commit -m "Commit information"

If the above two steps are executed successfully, this error still occurs because the created directory is empty, and there must be files in the directory for git push upload to be successful.

When creating a file on GitHub, add the / symbol after the new file name to create a folder. However, this method only supports English name directories, and Chinese name directories are not supported.

The above is the detailed content of Everything up-to-date appears when executing the git command. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn