Home >Development Tools >git >Everything up-to-date appears when executing the git command
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!