Using Git on windows

Ankit Mishra
2 min readMar 17, 2019
Install Git for windows from hereWe now configure the git on windows with SSH Key
1. get a github account first
2. open the git bash inside folder where you want to create a git repository
3. use following commands to create your regitry on git windows
$ git config --global user.name "Ankit Mishra"
$ git config --global user.email "ankitmishra723@gmail.com"
4. Generate SSH-key for your system
$ ssh-keygen -t rsa -b 4096 -C "ankitmishra723@gmail.com"
(at this stage you will be asked for a passphrase, remember it is not your password for github account, so go ahead and create a passphrase you like)
this will create two keys at the default location you selected
5. add you identification to this ssh key
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_rsa
(here again you will asked for the passphrase entered above)
6. copy all contents of the .pub file saved on your system to github->settings-->SSH & GPG Keys 
now inside the folder place a file you want to push
7. $ git init
(this initializes the git repository in your folder)
$ git add README.md
$ git commit -m "first commit"
$ git remote add origin git@github.com:theAIsamurai/Image_processing_Learning.git
$ git push -u origin master
this is how you make you first commit

Originally published at http://realelectricwizard.wordpress.com on March 17, 2019.

--

--