Software Crafting
  • Introduction
  • Tools
    • *nix\/Shell Setup
      • zsh
        • Switching to zsh
        • zsh Themes
        • zsh Prompt Escape Sequences
        • Troubleshooting
    • git
      • Addressing common errors
    • GitHub
      • GitHub Markdown Cheetsheet
      • Configure \/ Make \/ Make Install
    • tmux
      • Useful tmux Links
    • vim
      • Build from Repository Tips
    • Ubuntu
    • Misc
  • Seminars
    • 2018 SCaLE 16x Container Days
    • 2017 MATLAB Expo
    • 2017 SoCal Code Camp
    • 2017 SCNA
    • 2017 MathWorks Advisory Board
      • Day 1: MATLAB Platform and Data Analytics
      • Day 2: Model-Based Design with Simulink: Modeling and Simulation
      • Day 3: Model-Based Design with Simulink: Code Gen and V&V
    • Agile Systems Engineering Planning Using Six Thinking Hats
    • 2016 SoCal Code Camp
    • 2016 SCNA
    • 2016 Pre-SCNA Workshop
  • Programming
    • Javascript
      • Node.js
        • Frameworks
    • Python 2
    • Rust
    • Makefiles
    • GNU General Public License (GPL)
  • Crafting
  • Algorithms
  • Amazon Web Services
    • Administrating
Powered by GitBook
On this page
  • Tips
  • Clone using ssh-key
  • Push to github without password using ssh-key

Was this helpful?

  1. Tools

git

PreviousTroubleshootingNextAddressing common errors

Last updated 6 years ago

Was this helpful?

Tips

Clone using ssh-key

git clone ssh://git@github.com/<user>/<repository name>.git

Push to github without password using ssh-key

If it is asking you for a username and password, your origin remote is pointing at the https url rather than the ssh url.

.

For example, a github project like Git will have https url

https://github.com/<Username>/<Project>.git

and the ssh one:

git@github.com:<Username>/<Project>.git

You can do:

git remote set-url origin git@github.com:<Username>/<Project>.git

to change the url.

Cloning a specific branch
For repositories on GitHub
Change it to ssh