How to Push to Git from an Airplane


Look, sometimes, you need to work wherever you can. I found myself in a similar situation recently, cruising at 30,000ft, trying to ship some code for CrowdSync. Connected to wifi (JetBlue’s wifi is FANTASTIC), editing code was no problem. However, when I went to push to git:

Fatal Git push

If you’ve ever had this happen, there’s an easy solution. If you’re using SSH, chances are, the network you’re connected to blocks the standard SSH port (22). But, they’ll likely have standard ports open, like 80 and 443. Lucky for us, Github allows us to connect to a repo via SSL, instead of SSH.

So, if you want to push to Git while on a plane (or wherever you can’t access SSH):

  • Grab your SSL URL for your repo. Do this by selecting “Use HTTPS” in the menu that the “Clone or download” button pops out:

GitHub Clone Menu

  • Add a new remote with that URL:
git remote add nossh https://github.com/username/repository.git
  • Start pushing and pulling to that remote, instead of the one you usually use, and boom, you’re in business!

Hope this helps you in times where you need to push to Github, but you’re blocked for whatever reason. It’s great on airplanes, and probably good for other restricted scenarios as well.

Special thanks to Josh for the tip on figuring this out!

(BTW - this post was also written and pushed to Git at 30K feet - putting our money where our mouth is!)

Successful Git Push

Related Posts

Required Reading for All Couples

If you're married, about to get married, or just committed to someone for a long period of time, these three books are absolutely required reading.

I Launched a New Podcast, and I Want You to Call In

I just launched a new podcast called Design By Committee, dedicated to answering your questions about UX, product design, content, strategy and anything else tech.

Shitty Sales Have Made Product Development Harder

Shitty, one-sided sales processes have made product development much more difficult for early stage startups.

Why I'm Cold Emailing You

You might have gotten a cold email from me. Tasteless? Some people think so. Here's why I'm doing it.

How I Found Your Email

I've been cold emailing a lot of people, and many folks are surprised that I found their email. Here's where I dug it up.

Sales is User Research, Undercover

Announcement: The Most Exciting Thing I've Done

Today, I'm announcing the most exciting project I've been involved with. It's called CrowdSync, and it helps to automate paperwork, communication and logistics when dealing with groups of people. Read on for why this is so big.

Three Ways to Start Talking to Users

How to Post to Private Slack Channels from Zapier

If you automate posting to Slack via Zapier, you might need to post to a private channel. It's not entirely obvious how to do it, but actually pretty damn easy.

A Peek Inside our UX Process