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

Default Yes vs. Default No

Are you and your team members default yes, or default no? One is good for startups, the other not so much.

Check Your Echo Chamber

The people you surround yourself with create your reality. Choose carefully.

Don't Forget the Goal

There's only one thing that matters when you're building software.

How To Get a Job Offer

Want to get a job in the field you love easily? This is how.

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