简体   繁体   中英

Can't commit and push to github repository

Screenshot

Hi,

I'm trying to commit and push my work onto github. However, I can't.

Seems like it's saying some of the files i'm trying to push are too large.

But that's why I specified the.csv and.pt files in.gitignore.

I am not sure why.gitignore is not working as it should.

Any help will be very much appreciated.

Bye.

You need to first commit and push your.gitignore file before it is considered by Git.

Try this

git rm -rf --cached

then

git add

this should remove all the files from ur commit cache and then add them back but using the ignore

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