Artwork

المحتوى المقدم من HPR Volunteer and Hacker Public Radio. يتم تحميل جميع محتويات البودكاست بما في ذلك الحلقات والرسومات وأوصاف البودكاست وتقديمها مباشرة بواسطة HPR Volunteer and Hacker Public Radio أو شريك منصة البودكاست الخاص بهم. إذا كنت تعتقد أن شخصًا ما يستخدم عملك المحمي بحقوق الطبع والنشر دون إذنك، فيمكنك اتباع العملية الموضحة هنا https://ar.player.fm/legal.
Player FM - تطبيق بودكاست
انتقل إلى وضع عدم الاتصال باستخدام تطبيق Player FM !

HPR4485: Git for Github and Gitlab

 
مشاركة
 

Manage episode 512684697 series 108988
المحتوى المقدم من HPR Volunteer and Hacker Public Radio. يتم تحميل جميع محتويات البودكاست بما في ذلك الحلقات والرسومات وأوصاف البودكاست وتقديمها مباشرة بواسطة HPR Volunteer and Hacker Public Radio أو شريك منصة البودكاست الخاص بهم. إذا كنت تعتقد أن شخصًا ما يستخدم عملك المحمي بحقوق الطبع والنشر دون إذنك، فيمكنك اتباع العملية الموضحة هنا https://ar.player.fm/legal.

This show has been flagged as Clean by the host.

Hello, this is your host, Archer72 for Hacker Public Radio

In this episode, I get a crash course on git, and thought it would make a good episode. Not actually on git itself, but how to use it on Github and Gitlab.

First off, I am looking for a job, so I thought it would be a great time to brush up on my git knowledge and make a show too. Of course, I am no git expert by any means, but as it has been said in comments Hacker Public Radio is my memory.

You will want to create and ssh key for each Git instance, in this case I will use both Github and Gitlab. A few other sites to host Git files which are Hacker Public Radio's own Gitea on HPR, Notabug and Codeberg

Now lets get started.

  • ssh-keygen will create an ed25519 key pair
  • several years ago this was not yet the default
  • add entry to ~/.ssh/config for each git instance
Host github.com User git IdentityFile ~/.ssh/github-ricemark20 Host gitlab.com User git IdentityFile ~/.ssh/gitlab-archer72 

SSH Keys

ssh-add ~/.ssh/git-key (not .pub)

Git

• GPG

 - gpg --full-generate-key  - gpg --list-public-keys  - 40 character string  - git config --global user.signingkey XXXXPublicKey  - git config --global commit.gpgsign true  - gpg --armor --export XXXXPublicKey  - copy output to Github or Gitlab, including <…BEGIN PGP…> 

Gitlab

  • Avatar > Edit Profile > SSH Keys > Add key (on the right side)
  • Gitlab - SSH keys
  • cat ~/.ssh/gitlab-key.pub
  • Add Key
  • git remote set-url origin [email protected]/user/gitlab-repo.git
  • Edit Profile > GPG Keys > Add key (on the right side)
  • Gitlab - GPG keys
  • copy and add public key from gpg --list-public-keys (40 Characters)

Github

  • Avatar > Settings > SSH and GPG Keys > New SSH key
  • Github - keys
  • cat ~/.ssh/github-key.pub
  • Github - New SSH key
  • Title, Key > Add SSH key
  • git remote set-url origin [email protected]:user/github-repo.git
  • Avatar > Settings > SSH and GPG Keys > New GPG key
  • Github - New GPG key
  • Title, Key > Add GPG key
  • copy and add public key from gpg --list-public-keys (40 Characters)
 Create a new repository named something like resume or my-resume Upload your HTML resume file and name it index.html Go to your repository Settings → Pages Under "Source," select "Deploy from a branch" Choose "main" branch and "/ (root)" folder Your resume will be available at https://yourusername.github.io/resume 

Github.io - ricemark20

Provide feedback on this episode.

  continue reading

4503 حلقات

Artwork
iconمشاركة
 
Manage episode 512684697 series 108988
المحتوى المقدم من HPR Volunteer and Hacker Public Radio. يتم تحميل جميع محتويات البودكاست بما في ذلك الحلقات والرسومات وأوصاف البودكاست وتقديمها مباشرة بواسطة HPR Volunteer and Hacker Public Radio أو شريك منصة البودكاست الخاص بهم. إذا كنت تعتقد أن شخصًا ما يستخدم عملك المحمي بحقوق الطبع والنشر دون إذنك، فيمكنك اتباع العملية الموضحة هنا https://ar.player.fm/legal.

This show has been flagged as Clean by the host.

Hello, this is your host, Archer72 for Hacker Public Radio

In this episode, I get a crash course on git, and thought it would make a good episode. Not actually on git itself, but how to use it on Github and Gitlab.

First off, I am looking for a job, so I thought it would be a great time to brush up on my git knowledge and make a show too. Of course, I am no git expert by any means, but as it has been said in comments Hacker Public Radio is my memory.

You will want to create and ssh key for each Git instance, in this case I will use both Github and Gitlab. A few other sites to host Git files which are Hacker Public Radio's own Gitea on HPR, Notabug and Codeberg

Now lets get started.

  • ssh-keygen will create an ed25519 key pair
  • several years ago this was not yet the default
  • add entry to ~/.ssh/config for each git instance
Host github.com User git IdentityFile ~/.ssh/github-ricemark20 Host gitlab.com User git IdentityFile ~/.ssh/gitlab-archer72 

SSH Keys

ssh-add ~/.ssh/git-key (not .pub)

Git

• GPG

 - gpg --full-generate-key  - gpg --list-public-keys  - 40 character string  - git config --global user.signingkey XXXXPublicKey  - git config --global commit.gpgsign true  - gpg --armor --export XXXXPublicKey  - copy output to Github or Gitlab, including <…BEGIN PGP…> 

Gitlab

  • Avatar > Edit Profile > SSH Keys > Add key (on the right side)
  • Gitlab - SSH keys
  • cat ~/.ssh/gitlab-key.pub
  • Add Key
  • git remote set-url origin [email protected]/user/gitlab-repo.git
  • Edit Profile > GPG Keys > Add key (on the right side)
  • Gitlab - GPG keys
  • copy and add public key from gpg --list-public-keys (40 Characters)

Github

  • Avatar > Settings > SSH and GPG Keys > New SSH key
  • Github - keys
  • cat ~/.ssh/github-key.pub
  • Github - New SSH key
  • Title, Key > Add SSH key
  • git remote set-url origin [email protected]:user/github-repo.git
  • Avatar > Settings > SSH and GPG Keys > New GPG key
  • Github - New GPG key
  • Title, Key > Add GPG key
  • copy and add public key from gpg --list-public-keys (40 Characters)
 Create a new repository named something like resume or my-resume Upload your HTML resume file and name it index.html Go to your repository Settings → Pages Under "Source," select "Deploy from a branch" Choose "main" branch and "/ (root)" folder Your resume will be available at https://yourusername.github.io/resume 

Github.io - ricemark20

Provide feedback on this episode.

  continue reading

4503 حلقات

كل الحلقات

×
 
Loading …

مرحبًا بك في مشغل أف ام!

يقوم برنامج مشغل أف أم بمسح الويب للحصول على بودكاست عالية الجودة لتستمتع بها الآن. إنه أفضل تطبيق بودكاست ويعمل على أجهزة اندرويد والأيفون والويب. قم بالتسجيل لمزامنة الاشتراكات عبر الأجهزة.

 

دليل مرجعي سريع

حقوق الطبع والنشر 2025 | سياسة الخصوصية | شروط الخدمة | | حقوق النشر
استمع إلى هذا العرض أثناء الاستكشاف
تشغيل