简体   繁体   中英

Why i can't push my project to my Repository on Github

i just follow this steps to upload this project to repository in my github

enter image description here

and this problem comes, how i can fix this? enter image description here

You need to stage your modified files first with commands:

git add <yourfile>

Git itself have stage area which was contains of your file that going to commited to your repo. For better explanation why it need to be staged ...

well If you don't want to git adding them one by one xD, you can use

git add -u // will added your modified files to stage 
git add * // which will add all of your files including your new files (literally everything to stage)
git commit -a // will commiting 

A little bonus, Git Cheat Sheet xD Also i have little advie, it was better if you work with your code around with Visual Code... its more simply to commit a changes to your repo in github with feature there.

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