forked from lerndevops/labs
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update configure-ssh-access-to-GitHub.md
- Loading branch information
lerndevops
authored
Apr 14, 2022
1 parent
b9a8d86
commit 7736a28
Showing
1 changed file
with
12 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,15 +70,19 @@ nareshwar@mbpro ~ % cat $HOME/.ssh/id_rsa.pub | |
|
||
##### Goto Your GitHub Account --> Configure SSH-KEYS as below | ||
|
||
![deploy-ssh-keys](https://github.com/lerndevops/labs/blob/master/static/git/github-deploy-ssh-keys.png) | ||
|
||
##### copy github project ssh url | ||
|
||
![ssh-url](https://github.com/lerndevops/labs/blob/master/static/git/github-project-ssh-url.png) | ||
|
||
##### From Your `Git Bash` OR `Mac` OR `Linux` Terminal | ||
|
||
|
||
|
||
git clone [email protected]:lerndevops/project007.git | ||
cd project007 | ||
git remote -v | ||
echo "hello" > 5.xml | ||
git commit -am "mod 5.xml" | ||
git push -u origin main | ||
``` | ||
git clone [email protected]:lerndevops/project007.git -- clone project with ssh url | ||
cd project007 -- get inside the project folder | ||
git remote -v -- check the remote url configured as ssh url | ||
echo "hello" > 5.xml -- modify any file | ||
git commit -am "mod 5.xml" -- add & commit file in local | ||
git push -u origin main -- push to remote github / it shouldn't ask any credentials | ||
``` |