Problem:
reason:
the branch is switched between the staging area and the local warehouse before the changed file is submitted.
Solution: execute the following commands in turn
git add filename (with suffix) # commit the changed file to the staging area
git commit -m "Changed files" filename (with suffix) # Commit the changed files to the local repository
Read More:
- Git pull error: Your local changes to the following files would be overwritten by me
- Git initializes the local existing project
- [Solved] Git push error: failed to push some refs to ‘[email protected]:daisy_yangyang/fed-e-task-04-01.git‘
- Git error bad signature [How to Solve]
- Push to origin/Master was rejected [How to Solve]
- How to Export All data in DataGridView to Local Excel
- Git-2.16.1.2-64-bit Error: cannot spawn git: Function not implemented
- [Git] Solve git branch -M main error: refname refs/heads/master not found
- [Solved] fatal: not a git repository (or any of the parent directories): .git
- [Solved] Node uploads files to FTP server error: timed out while making data connection
- Git Error: remote: HTTP Basic: Access denied [How to Solve]
- AFTER THE GIT SOURCE CODE IS INSTALLED, AN ERROR IS REPORTED /USR/BIN/GIT: NO SUCH FILE OR DIRECTORY
- [Solved] ERROR: The kernel module failed to load, because it was not signed by a key that is trusted by the
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- [Solved] Cannot find command ‘git‘ – do you have ‘git‘ installed and in your PATH?
- Git: How to delete stash content
- [Solved] git error: unable to create file Filename too long
- Grep: How to Find All the Files Containing a String in Linux
- Problem solving / etc/ rc.local The boot entry of the file configuration is invalid
- How to Solve Git clone Error: error: RPC failed; result=35, HTTP code = 0