Github Push Commands

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.

  1. Add a commit with a message
    git commit -m 'commit message'
  2. Push to gh repo
    git push branchname
    Or if you need to force push
    git push branchname --force
  3. You’ll then need to enter your github username and password
  4. 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 :slight_smile:

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

1 Like

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