I just changed the README file and want to sync it in github, but it always tells me “You cannot sync with unstaged changes”. Could someone tell me what it is and how should I fix this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Look at learn.github:
You need to:
git add),git commit -m "your modification comment"),git push).See also “working with remotes“)
So “unstaged changes” aren’t linked to GitHub, but are local modifications on your local repo, which you haven’t yet added to the index (“staged”), for a future commit.