Book Name : The Python Workshop (Packt Publishing)
Author Name : Andrew Bird, Dr Lau Cher Han, Mario Corchero
Jimenez, Graham Lee, Corey Wade
Chapter Number : 9
Chapter Name : Practical Python Advanced Topics
Developing collaboratively with git:
Opening a github account and sign-out procedure:
1. Here we create github account through “Continue with Google” (Not by giving password).
2. Open website “[Link]
3. Click on “Sign up”. Then click on “Continue with Google”.
4. The write username of gmail account (bca4thsem@[Link]) and give this gmail password.
Then github show a username to you as below.
Username: bca4thsem-jpg
5. Click on “Continue”. After verification you able to enter your github account.
6. For Sign-out, click on in left side top corner symbol “Open user Navigation Menu”. Then
below click on “Sign-out”. Now in a message it ask “Signed out as bca4thsem-jpg”. Click on Sign-
out you sign-out. But still you are login in both github account and in your personal gmail
account. So from another tab of internet sign-out from your personal gmail account. So now
actually you Sign-out from github.
Next day to enter github account:
1. First open website “[Link]
2. Click on “Sign in”. Then below in page click on “Continue with Google”. Now enter your
username as “bca4thsem@[Link]” and your this gmail password.
3. Now you again able to enter your github account. For entering account no need to write
“bca4thsem-jpg”. Because by default github consider my account is “bca4thsem-jpg” which is
associate with “bca4thsem@[Link]”.
Creating a Repository in github account:
1. We create a repository for a new idea for our first project. So click on “Create Repository”.
2. Now “Create a new repository” page will open.
3. Under “General”, it show “Owner name” as “bca4thsem-jpg”.
4. Give “Repository Name” as “python-bca88” (If this name is available give another name). You
may write “Description”.
5. Under “Configuration” you choose “visibility” as “Public”, then off the README, select “No
.gitignore” and select “No License”.
6. Then below click on “Create Repository”. Now your personal repository page will open.
7. From here you able to setup this project in Desktop by click on “Set up in Desktop” or you may
use “HTTPS URL” or “SSH URL” to setup the project. “SSH” is very useful for us. So click on
“SSH”. Now copy the “git@[Link]:bose3344-jpg/[Link]” URL which is display in
box (associate with your username).
8. Now in Windows PC, open command prompt (cmd). By default you are in home directory.
Here you have to paste SSH URL that you have copied before but first you have to write “git
clone”. The “clone” means download”. That means we download materials from this github
SSH URL.
PS C:\Users\Ganesh>git clone git@[Link]:bose3344-jpg/[Link]
Then press enter key. It show error as “Nor recognize git”.
So first install git in Windows PC.
Installation procedure of git in Windows PC:
a. Open link “[Link]
b. Then click on “Click here to download” under “Windows” section.
c. Now an application file named as “Git-2.53.0-64-bit” of “61.5 MB” is downloaded.
d. Double click on it to run it. A window message come. Click on “Yes”.
e. Now Setup wizard will come. Click on “Next”. Do not change path. Click on “Next”.
Click on Next many times without changing anything.
f. Under “Adjusting your PATH environment” select “Git from the command line and
also from 3rd party software”. Then click on “Next”.
g. Then select “Use Bundled OpenSSH”. Then click on Next.
h. Then select “Use the OpenSSL Library”. Then click on Next.
i. Then select “Checkout Windows-style, commit Unix-style line endings”. Then click
on “Next”.
j. Then select “Use MinTTY(----)”.Then click on “Next”.
k. Then select “Fast-forward or merge”. Then click on “Next”.
l. Then select “Git Credential Manager”. Then click on “Next”.
m. Then select “Enable File system caching”.
n. Then click on “Install”. After installation click on “Finish”.
Now close the previously opened command prompt. Again open command prompt.
(If you work on previously open command prompt further then again error come as not
recognized git)
Now again open command prompt. Type command as below. It show version.
PS C:\Users\Ganesh> git --version
git version [Link].1
PS C:\Users\Ganesh> git clone git@[Link]:bose3344-jpg/[Link]
(In below we write “yes” to continue. Now below processing are come)
Cloning into 'python-bca88'...
The authenticity of host '[Link] ([Link])' can't be established.
ED25519 key fingerprint is: SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
This key is not known by any other names.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '[Link]' (ED25519) to the list of known hosts.
git@[Link]: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
PS C:\Users\Ganesh>
ssh-keyscan [Link] >> ~/.ssh/known_hosts
9.