EXP 1: Deploy to Github via git project:
---------------------------------------------
Step 1:
In the git bash first give command ssh-
keygen
Step 2:
click on enter until it gets a diagram
Step 3:
Click the command "cat
/c/Users/faizaan/.ssh/id_rsa.pub"
step 4:
Go to git hub account and click on
settings and click on ssh keys and name
the title with some name and copy this
"ssh-rsa
AAAAB3NzaC1yc2EAAAADAQABAAABgQ
C9+ChtRIOMj1//oJFD3tawu7+3ComGDxS
OAt4c+lSEczewwN+jIRh8wdERK5wZyQEc
XKA+sTRf2U2+JHglLV0EiGbyrNc/SYwpTjl6
HJPfqoqkgN6wBJMSvGVR8Lua4BzGjiz0V
mcKqIxiQKQ4Udad5eqXOzlf+W+xEw5OY
wQq+3AYOKK16ak97PtqSRjKhSZZ3pone
mWLRs4ZPt3c18BLtw61aIli7l50Ele5kel8H
NIHCOR5/pZDyrnUaKPZSi3lmP/6GTxrxj7
G9Iob2dm/zhlfk98w2vuN2PDFB8s2GdHO
mEANcZSTeZb21dbLGf8b54Dz/a0H7mTJc
+5gis2m582T1xSLCBoBtcgeaBt7bLpUHR/
HrhDlFHYB4Y6AxWtCNyU2cF+cQBxRIvQP
orVcHUgFWW2Ixr86Je4VBolvh0Imd16FTo
FHad+xsFANR9k+Cwj8mKu/r8NcyH04ISG
6j0/JZ1LBStN4jJ4igsaH7PG1g6AuHdv1C7X
9xCIU4Ws= faizaan@FaizaanAzam5" and
paste it in that box and clcik on add ssh
key
step 5:
Give all this commands
Step 6:Give this commands in git bash
Step 7:
Step 8:(optional)
Give this commands for to make it global
if it gives make it global error
git config –global user.email
[email protected]git config –global user.name “Faizaan”
Step 9: give the command
You will get this notepad file
Type something in this notepad file and
save it and close
Step 10:Give all this commands
Step 11:
Go to your github account and click on
new repository and name it as “sample1”
And click on create repository
Step 12:
Those who are having master
give this command in your
git bash “git branch -M main” it will
be changed to main from master
Step 13:
Give the commands
Then you will get output in
your github account as sample1
go into it and check you will
get the result i.e the text
that is given in notepad file
Go to sample1 then you will see
the text you were given