Skip to content
← Back to Community
Can't push files to Github.
Profile icon
shplss

Hi everyone,

I'm trying to push my latest changes to Github and replit seems not to be processing my request.

This is the first time I create files through replit and I'm wondering if that's the reason the pushing request is not working.

Up until now I had no problem modifying files and push the changes.

Any help with this issue would be appreciated. Thanks!

Voters
Profile icon
BeratDM
Profile icon
SharonCao0920
Profile icon
VincentLin21
Profile icon
MarvelKid
Profile icon
shplss
Comments
hotnewtop
Profile icon
tax07

I don't know how to solve this, but what's certain is that there's no password authentication on github like the link above https://han.gl/tjYTr, but we're still doing it on repeat. What should I do now? (Note: This sentence is translated by a translator)

Profile icon
tax07

repeat -> replit

Profile icon
Coder100

Hello. Try hitting Ctrl+Shift+S to enter into the shell.
Then, try doing:

git add . git commit -m "added files" git push -u origin master.

guaranteed to work: If it does not work there are most likely 2 problems:
1: You are not a collaborator to the project
2: You have not linked the git repo.

For problem 1, you can just invite the act, or create a new repo and make a pull request.

For problem 2, enter in: git remote add origin [insert git URL here]

Hopes this helps! Mark as correct answer if it has helped you!

Profile icon
shplss

@Coder100
Thank you for your comment!

Apparently there was a problem with 'index.lock' so I had to delete it manually through the shell and restart the process.

I still have the problem though, as the pull request hasn't shown up in my github.

Profile icon
Coder100

hello, send screenshots. It should have automatically added the files into the git repo if you are a collaborator/owner.

@shplss

Profile icon
tax07

@Coder100
how we push the file on git?