Hi, I have a question about the Tools → Import and Export → Export to Github.
When I commit/push to a repository, what git commands are used to do this push along with that selecting a repo and a message?
uh bump… or is it just using github’s api or something?
Hi, I’m not entirely sure what you mean by commands… here’s how you can use various git
commands in the terminal - note that I haven’t actually tested this on glitch.
- Add a commit with a message
git commit -m 'commit message'
- Push to gh repo
Or if you need to force pushgit push https://github.com/user/repo.git branchname
git push https://github.com/user/repo.git branchname --force
- You’ll then need to enter your github username and password
- Recieve an email from github telling you that this method is deprecated and you should really be using github desktop instead
Hopefully this answers your question
Edit: I don’t know how glitch itself actually does it, it probably does use the api, but it might do this or do it via ssh or something
ty for the input. i know how to use git commands, but i don’t know how glitch does it which is why i ask. when i manually push to git using the commands you mentioned (also git add .) i get a whole bunch of other commits that i didn’t want that were related to glitch’s checkpoint/rewind system (emojiemoji Checkpoint).
So I don’t repost, look at the bottom of this post for stopping default commits.
Also available here
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.