I’m wondering how to update my website from a git. I’m experimenting with a code editor for my iPad and I cloned my git repo and works perfectly… up until I try to commit my changes. It says “upload failed”. I have a feeling this has to do with glitch itself but not the code editor. Please help!
1 Like
wh0
August 3, 2022, 12:13am
2
committing should work, but pushing might not work in the default settings. see about receive.denyCurrentBranch
here
I am developing an application using glitch. I would like to be able to push it from a dev copy to a demo copy, and then to production manually. I understand I could probably export to github and build workflows and CI to do all this, or develop using an ide on my laptop. I also read a similar forum post where they landed on swapping out project names. But I like to stay in the web editor, and swapping project names ignores the .env and .data folders, which need to stay. What I really want…
1 Like
I tried that and then this came up
1 Like
wh0
August 4, 2022, 7:02am
4
you couldn’t resist slapping that into the terminal as is
3 Likes
sorry for the long reply, i pasted the command in the terminal the right way and now pulling and committing doesn’t throw an error but now it does nothing. pushing however still throws an error saying
Pushing changes…
Writing objects: 0.0%
Push upload to remote failed
I have a feeling its because of how I cloned the git since I used SSH instead of HTTPS
1 Like
wh0
August 8, 2022, 10:04pm
6
how’d you get connected to your Glitch project repo via SSH?
1 Like
I just pasted the git url in and it cloned it
1 Like
wh0
August 9, 2022, 7:08pm
8
glitch gives HTTPS git urls, so is it possible that this whole thing wasn’t working because you were pushing to somewhere other than glitch?
1 Like
Maybe but it cloned perfectly
1 Like
wh0
August 9, 2022, 8:38pm
10
what was the SSH URL? redact any tokens if necessary
1 Like
do I have to? the project includes my real name my name is not ‘someone’ ik big woop and I don’t want to reveal it yet. but all I did was just copy the project’s git and it worked
1 Like
wh0
August 9, 2022, 9:11pm
12
you can redact the name too (:
but I’m still curious
1 Like
any project will work though
1 Like
wh0
August 10, 2022, 2:36am
14
https://(token)@api.glitch.com/git/(project name)
?
2 Likes
wh0
August 10, 2022, 5:29pm
16
thanks for checking. that’s an HTTPS url, not an SSH url, so it shouldn’t be a problem related to ssh
1 Like
This time I cloned my git with the https method and it cloned perfectly. However pushing, pulling, and committing does nothing but when you push it still throws an error
2 Likes
wh0
August 10, 2022, 9:26pm
18
they shouldn’t do anything, right? i.e. you’ve made no changes to push/pull/commit?
can you show your git config, just to make sure the above denyCurrentBranch
thing stuck?
1 Like
I did make changes
All i did was paste the following into the terminal
git config receive.denyCurrentBranch updateInstead
echo 'refresh' > ./.git/hooks/post-update
chmod +x ./.git/hooks/post-update
1 Like
wh0
August 10, 2022, 10:20pm
20
hm and that even looks fine
still throws an error
is it a different error then?
1 Like
yes it does throw the same error
1 Like
wh0
August 11, 2022, 12:08am
22
can you post the detailed error? maybe there was a problem other than the branch being checked out on the remote all along
1 Like
I provided a gif below, you can see that the branch is ‘master’
The gif
1 Like
wh0
August 11, 2022, 9:51pm
24
ouch, that’s really all that it says
any chance the command line git has more detailed info?
1 Like
wh0
August 12, 2022, 4:08am
26
But it doesn’t say the exact same thing, does it?
1 Like
wh0
August 12, 2022, 6:02pm
28
All the more mysterious, because that error message isn’t even in the Git source code.
1 Like
There are a few messages along the lines of it in the source code.
1 Like
wh0
August 15, 2022, 6:18am
30
I wish it were one of these, so we could get a more precise idea of what’s going wrong
1 Like
the app im using is also on a website called code sandbox
1 Like
wh0
August 23, 2022, 3:52pm
33
if you’re still interested, could you send a screenshot of what happens when you do it from the command line git? include the command
2 Likes
system
Closed
February 19, 2023, 3:53pm
34
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.