git clone command with username and password

The command would be:

git clone https://username@github.com/username/repository.git

Then it will prompt you for your password.

In this way the password won’t be logged in your Bash history file.

General solution is here.

Written by

Web geek, Self-taught full-stack web developer, Learning Python, Laravel, Vuejs, UX/UI design, Nuclear Physicist PhD

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store