Git configure & terminal command for mac

1. Terminal command

  1. Show folder list: ls
  2. Enter any folder directory: cd folder_name
  3. Create new folder: mkdir foler_name
  4. Back from current directory to previous directory: cd ..
  5. Delete file: rm file_name
  6. Delete folder: rm -r folder_name
  7. Delete multiple folder: rm -r folder1 folder2 folder3
  8. Create new file: touch file_name.extension (example: Test.txt)
  9. Write new text in text file: echo “your_text” > file_name.extension
  10. Showing text file text: cat file_name.extension
  11. Return root directory: cd ~
  12. Show all folder/file also hidden using: ls -a
  13. Open any file: open file_name
  14. Clone github repository: git clone github_url

Git configuration with setup SSH key in github

1. Step_01:

If you don’t have git then install it from git-scm.com. After install it check the git version using command: git –version

2. Step_02:

After successfully install git then config your name & email using command:

  1. For name: git config --global user.name "your name here"
  2. For email: git config --global user.email "your email here"
    N.B: This name and email setup for global, you can setup it for local or system using just –local & –system
  3. Check setup user name using command: git config user.name
  4. Check setup user email using command: git config user.email
    N.B: If you want clear name and email just using this command: git config --global --unset user.name & git config --global --unset user.email

3. Step_03:

Now we will create SSH(Secure Shell) key. It’s stands for communication protocol where one computer communication with another computer securely. Suppose you want to communicate with github then you can use SSH key. if you want to clone without setup SSH key then you get error. Now setup SSH key then clone your repository using:

  1. Check has SSH folder using command: cd .ssh
  2. If you have ssh folder then check has any ssh key using command: ls
  3. If you don’t have ssh folder then create it using command: mkdir .ssh
  4. If you don’t have ssh key then create it using command: ssh-keygen -o -t rsa -C write_your_email_here
  5. Now open public key file using command: cat id_rsa.pub

4. Step_04:

Go to github settings and select SSH & GPG key menu bar, click new ssh key button and paste your key. give any name title like: my macbook.
Now you can clone any repository from terminal using SSH github repository url. Copy your repository ssh url & paste your terminal using command: git clone ssh_github_repository_url and finally press enter button then you will see like this:
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes (type yes and press enter).

36 thoughts on “Git configure & terminal command for mac

  • 17/08/2024 at 8:45 PM
    Permalink

    I really enjoyed this article. Your writing style is engaging and the information you provided is very useful. The detailed explanations and practical examples made it easy to follow along. Thank you for creating such a valuable resource.

    Reply
  • 18/08/2024 at 2:16 AM
    Permalink

    [url=https://opt24.store/product-category/pechene_i_vafli/pechene/ ]купить оптом печенье от производителя[/url] – monster energy оптом, купить батончик марс оптом

    Reply
  • 18/08/2024 at 3:20 AM
    Permalink

    [url=https://mounjaro-kupit.su/]mounjaro тирзепатид[/url] – мунжаро цена, мунжаро +для похудения купить

    Reply
  • 18/08/2024 at 3:58 AM
    Permalink

    [url=https://blacksprut-sait.top/]блек спрут оригинальная ссылка[/url] – блэкспрут сайт, спрут как попасть на сайт

    Reply
  • 18/08/2024 at 12:25 PM
    Permalink

    [url=https://mounjaro-5mg.ru/mundzharo]mounjaro купить +в спб[/url] – mounjaro купить +в турции, mounjaro купить

    Reply
  • 18/08/2024 at 2:56 PM
    Permalink

    [url=https://mounjaro-medical.ru]тирзепатид купить +в екатеринбурге[/url] – мунжаро дозировка, тирзепатид отзывы

    Reply
  • 18/08/2024 at 6:01 PM
    Permalink

    [url=https://bs4shop.top/]блэкспрут 2fa[/url] – блэк спрут ссылка, 2fa blacksprut

    Reply
  • 18/08/2024 at 7:37 PM
    Permalink

    [url=https://blacksprut-sait.top]блэкспрут сайт[/url] – блэкспрут сайт, blacksprut onion

    Reply
  • 19/08/2024 at 5:17 AM
    Permalink

    click here now [url=https://my-jaxxwallet.io]jaxx wallet recovery[/url]

    Reply
  • 19/08/2024 at 10:58 AM
    Permalink

    [url=https://t.me/ozempic_zakazat/]саксенда +для похудения[/url] – препарат тирзепатид, дулаглутид инструкция +по применению

    Reply
  • 19/08/2024 at 11:21 AM
    Permalink

    [url=https://t.me/ozempicg/]оземпик инструкция купить[/url] – мунжаро купить +в москве +в аптеке, семаглутид отзывы пациентов

    Reply
  • 19/08/2024 at 12:08 PM
    Permalink

    [url=https://mounjaro-5mg.ru/mundzharo/]mounjaro[/url] – mounjaro buy, mounjaro tirzepatide цена

    Reply
  • 19/08/2024 at 2:01 PM
    Permalink

    [url=https://installs.info]купить установки на мой exe[/url] – продажа инсталлов, файловый трафик

    Reply
  • 23/11/2024 at 6:37 AM
    Permalink

    [url=https://super-bag.ru/catalog/zhenskie_sumki/prada/]сумка женская prada[/url] или [url=https://super-bag.ru/catalog/brendovaya_zhenskaya_odezhda/brendovaya_zhenskaya_verkhnyaya_odezhda/pukhovik/]брендовый пуховик женский зимний[/url]

    [url=https://super-bag.ru/catalog/zhenskie_sumki/brendovye_zhenskie_sumki/gucci/]сумка gucci купить[/url]

    https://luxmsk.ru/catalog/brendovaya-muzhskaya-odezhda/brendovye-muzhskie-pidzhaki/

    Ещё можно узнать: [url=https://super-bag.ru/catalog/brendovaya_zhenskaya_obuv/brendovye_zhenskie_baletki/chanel/]chanel маленькая сумка[/url]

    брендовые очки

    Reply
  • 05/03/2025 at 10:20 PM
    Permalink

    Immerse yourself in the world of cutting-edge technology with the global version of the POCO M6 Pro, which combines advanced features, stylish design, and an affordable price. This smartphone is designed for those who value speed, quality, and reliability.

    Why is the POCO M6 Pro your ideal choice?

    – Powerful Processor: The octa-core Helio G99-Ultra delivers lightning-fast performance. Gaming, streaming, multitasking—everything runs smoothly and without lag.

    – Stunning Display: The 6.67-inch AMOLED screen with FHD+ resolution (2400×1080) and a 120Hz refresh rate offers incredibly sharp and vibrant visuals. With a touch sampling rate of 2160 Hz, every touch is ultra-responsive.

    – More Memory, More Possibilities: Choose between the 8/256 GB or 12/512 GB configurations to store all your files, photos, videos, and apps without compromise.

    – Professional Camera: The 64 MP main camera with optical image stabilization (OIS), along with additional 8 MP and 2 MP modules, allows you to capture stunning photos in any conditions. The 16 MP front camera is perfect for selfies and video calls.

    – Long Battery Life, Fast Charging: The 5000 mAh battery ensures all-day usage, while the powerful 67W turbo charging brings your device back to life in just a few minutes.

    – Global Version: Support for multiple languages, Google Play, and all necessary network standards (4G/3G/2G) makes this smartphone universal for use anywhere in the world.

    – Convenience and Security: The built-in fingerprint sensor and AI-powered face unlock provide quick and reliable access to your device.

    – Additional Features: NFC, IR blaster, dual speakers, and IP54 splash resistance—everything you need for a comfortable experience.

    The POCO M6 Pro is not just a smartphone; it’s your reliable companion in the world of technology.

    Hurry and grab it at a special price of just 15,000 rubles! Treat yourself to a device that impresses with its power, style, and functionality.

    Take a step into the future today—purchase it on AliExpress!

    Reply
  • 06/03/2025 at 3:43 PM
    Permalink

    Immerse yourself in the world of cutting-edge technology with the global version of the POCO M6 Pro, which combines advanced features, stylish design, and an affordable price. This smartphone is designed for those who value speed, quality, and reliability.

    Why is the POCO M6 Pro your ideal choice?

    – Powerful Processor: The octa-core Helio G99-Ultra delivers lightning-fast performance. Gaming, streaming, multitasking—everything runs smoothly and without lag.

    – Stunning Display: The 6.67-inch AMOLED screen with FHD+ resolution (2400×1080) and a 120Hz refresh rate offers incredibly sharp and vibrant visuals. With a touch sampling rate of 2160 Hz, every touch is ultra-responsive.

    – More Memory, More Possibilities: Choose between the 8/256 GB or 12/512 GB configurations to store all your files, photos, videos, and apps without compromise.

    – Professional Camera: The 64 MP main camera with optical image stabilization (OIS), along with additional 8 MP and 2 MP modules, allows you to capture stunning photos in any conditions. The 16 MP front camera is perfect for selfies and video calls.

    – Long Battery Life, Fast Charging: The 5000 mAh battery ensures all-day usage, while the powerful 67W turbo charging brings your device back to life in just a few minutes.

    – Global Version: Support for multiple languages, Google Play, and all necessary network standards (4G/3G/2G) makes this smartphone universal for use anywhere in the world.

    – Convenience and Security: The built-in fingerprint sensor and AI-powered face unlock provide quick and reliable access to your device.

    – Additional Features: NFC, IR blaster, dual speakers, and IP54 splash resistance—everything you need for a comfortable experience.

    The POCO M6 Pro is not just a smartphone; it’s your reliable companion in the world of technology.

    Hurry and grab it at a special price of just 15,000 rubles! Treat yourself to a device that impresses with its power, style, and functionality.

    Take a step into the future today—purchase it on AliExpress!

    Reply

Leave a Reply to JamesMig Cancel reply

Your email address will not be published. Required fields are marked *