Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fadowtech/call

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
3 Commits
 
 
 
 

Repository files navigation

1. Install Git

Using Homebrew (recommended):

  1. Install Homebrew (if you don't have it already): Open Terminal and run:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
  2. Install Git: Run the following command in Terminal:

    brew install git

Alternatively, using Xcode Command Line Tools:

  1. Open Terminal and run:
    xcode-select --install
  2. Follow the on-screen instructions to complete the installation.

2. Configure Git

  1. Set your name and email:

    git config --global user.name "Your Name"
    
    git config --global user.email "your.email@example.com"
  2. Check the configuration:

    git config --list

3. Connect to a Git Hosting Service

GitHub (example):

  1. Create a GitHub account: If you don't already have one, sign up at github.com.

  2. Generate an SSH key:

    ssh-keygen -t ed25519 -C "your.email@example.com"

    Press Enter to accept the default file location, and set a passphrase if desired.

  3. Add the SSH key to your GitHub account:

    • Copy the SSH key to your clipboard:
      pbcopy < ~/.ssh/id_ed25519.pub
      or
      cat ~/.ssh/id_ed25519.pub


      • Go to your GitHub account settings, navigate to SSH and GPG keys, and click New SSH key. Paste the key and give it a title.
  4. Test your SSH connection:

    ssh -T git@github.com

    You should see a success message.

4. Clone a Repository

  1. Clone a repository:
    git clone git@github.com:username/repository.git

5. Basic Git Commands

  • Check status:

    git status
  • Add changes:

    git add .
  • Commit changes:

    git commit -m "Your commit message"
  • Push changes:

    git push

Following these steps will set you up with Git on your Mac and enable you to interact with remote repositories.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.