简体   繁体   中英

Git Trying to commit a file restructure, no files have been edited

I have just begun learning the basics of Git.

I have installed Git locally and successfully integrated it to clone repos into my xampps/htdocs .

Now locally , in this repo I have moved all the files into the php_Basics folder. But when I try and commit to sync up with my GitHub repo it says no changes added to commit.

How do I commit the file restructure, and sync it to the GitHub repo?

Source: Reference

Details about github

  1. Checklist------------------------------------
  2. Move files to git cloned repository if not use git init then move files
  3. configure git username
  4. check status --- git status you will see changed files
  5. git add file to staging for commit
  6. git commit
  7. git push

Note: if the editor for the commit message is finicky, you can start with a shorter commit message in command line:

cd /path/to/local/repo
git add .
git commit -m "my message"
git push -u origin master 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM