0% found this document useful (0 votes)
53 views3 pages

TortoiseGit SSH Key Setup Guide

The document provides instructions for setting up Git and GitHub for source control. It includes steps to install Git and Tortoise Git, generate an SSH key, clone a GitHub repository, make changes to files and create new files/folders, commit changes locally, push the changes to a new branch on the remote repository, and raise a pull request.

Uploaded by

Akash M J
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
53 views3 pages

TortoiseGit SSH Key Setup Guide

The document provides instructions for setting up Git and GitHub for source control. It includes steps to install Git and Tortoise Git, generate an SSH key, clone a GitHub repository, make changes to files and create new files/folders, commit changes locally, push the changes to a new branch on the remote repository, and raise a pull request.

Uploaded by

Akash M J
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

GIT Topic Lab

[Link] signin in [Link]


2. Create a test repository for 4 members / Create individual repo for
Private, Add Read me, Add gitignore None, License None and click Create
Repository

3. Download [Link]

Download and install Tortoise GIT


[Link]

GIt Commands

Create folder by name Demo from your machine

open git bash and type below


cd ~/.ssh
cat ~/.ssh/id_rsa.pub

Copy and paste content in SSH and GPG keys of your account settings through web
application [Link]

[Link]
a-new-ssh-key-and-adding-it-to-the-ssh-agent

ssh-keygen
ssh -T git@[Link]

for old format


ssh-keygen -m PEM -t rsa -P "" -f afile

Santosh@DESKTOP-8V5OM9F MINGW64 /e/TestGuys (master)


$ ssh -T git@[Link]
Hi santoshnn! You've successfully authenticated, but GitHub does not provide shell
access.

1. Precondtion
install: git tortoise and git scm bash
Setup : SSH key in Git Repo
2. Cloning the project
git clone git@[Link]:santoshnn/[Link] -- done
cd Demo/
3. Modify existing file , new File and new Folder
3.1 Modify text in [Link]
vi [Link] -- done

3.2 Add new File in root dir


vi [Link]
add some text to it and Save it (Esc ! wq ) -- done

3.3. Add new folder with file in it.


mkdir newFolder1
vi newFolder1/newFile1
add some text to it and save it . -- done

4. Check the modified


git status -- done ( red files)
git diff [Link]

5. Add files which you wish to commit


git add [Link]
git add [Link]
git add newFolder1/ -- done

git status -- done ( red files turns green)

6. Commit changes (changes will be commited to local not at remote branch)


git commit -m "new changes"
git status -- done ( no files)

7. view comment detail


git log (new changes shown with commit comment)
git log -3 -- done

8. Push changes to remote


8.1 View remotes and get remote name (it will be used in 8.4 step)
git remote -v

8.2 Create new branch if not there


git checkout -b newBranch

8.3 check branchs


git branch
8.4 push branch/changes
git push origin newBranch

$ git push origin newBranch


Enumerating objects: 8, done.
Counting objects: 100% (8/8), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (6/6), 486 bytes | 243.00 KiB/s, done.
Total 6 (delta 0), reused 0 (delta 0)
remote:
remote: Create a pull request for 'newBranch' on GitHub by
visiting:
remote: [Link]
remote:
To [Link]:santoshnn/[Link]
* [new branch] newBranch -> newBranch

8.5 Check branch and changes in [Link] project code UI

9. Raise Pull Request

[Link] clone --progress -v "[Link] "E:\Demo1\Demo"


Cloning into 'E:\Demo1\Demo'...

git config --system --unset [Link]

git remote -v
ssh -Tv git@[Link]

ssh-keygen -t rsa -C "[Link]@[Link]"


git remote set-url --add origin git@[Link]:santoshnn/[Link]

git rm --cached -r

[Link]

[Link]

FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-
ClientTools-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")
FOR %F IN ("%SystemRoot%\servicing\Packages\Microsoft-Windows-GroupPolicy-
ClientExtensions-Package~*.mum") DO (DISM /Online /NoRestart /Add-Package:"%F")

You might also like