Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7813681
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T04:57:23+00:00 2026-06-02T04:57:23+00:00

I’m trying to use Git for the first time. I did everything that github

  • 0

I’m trying to use Git for the first time.

I did everything that github instructions said to do, but when I got to:

    git push -u origin master

I typed:

    /Users/name/Documents/Xcode.app/Contents/Developer/usr/bin/git push -u origin master

And got the error:

ERROR: Repository not found.
fatal: The remote end hung up unexpectedly

I also tried to set my git path to the above since it says git isn’t found, but the path didn’t work. So I’ve just been typing the whole thing out. When I did sudo find / -name git, it came up with the above directory for git, and also some other directories that I wasn’t sure about, such as

  • /Applications/Xcode.app/Contents/Developer/usr/bin/git
  • /Applications/Xcode.app/Contents/Developer/usr/libexec/git-core/git
  • /Applications/Xcode.app/Contents/Developer/usr/share/git-core/python/git_remote_helpers/git
  • /Users/name/Documents/Xcode.app/Contents/Developer/usr/share/git-core/python/git_remote_helpers/git

and the one that I used:

  • /Users/name/Documents/Xcode.app/Contents/Developer/usr/bin/git

I saw that all of the other commands to set up a git repository seemed to work ok.
Other commands to set up included

    mkdir fbPic2
    cd fbPic2
    <path to git>/git init
    touch README
    <path to git>/git add README
    <path to git>/git commit -m 'first commit'
    <path to git>/git remote add origin git@github.com:michcleary/fbPic2.git
    <path to git>/git push -u origin master #didn't work

I tried to look for .git/config but can’t find it.

I hope someone out there knows about this. It says that I need to get Git installed to do a Facebook app in the tutorial. I have a Mac Mini with Lion installed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T04:57:25+00:00Added an answer on June 2, 2026 at 4:57 am

    Absolute first step is to get Xcode to install the ‘command line tools’. Doing that will get the tools into /usr/bin – which is already in your PATH. Go to “Xcode” :: “Preferences” :: “Downloads” :: “Components” where there should be an install “Command Line Tools”. If there isn’t, go to “Xcode” :: “Open Developer Tool” :: “More Developer Tools” and download the most recent command line tools. Now, ‘git’ will be in your path. Should also be that ‘git help ‘ works too!

    Now configure git with (as suggested by @johnsyweb):

    git config --global user.name "full name"
    git config --global user.email  "email address"
    

    and for GitHub:

       git config --global github.user "github username"
       git config --global github.token "github token"
    

    where you will need to follow the GitHub directions to get your token. You’ll also need to carefully follow the GitHub SSH instructions.
    After the above ‘git config’ commands you will have a ~/.gitconfig file ready to go.

    Presumably you have created a GitHub repository already. If not, you must. [It doesn’t look like you have a public repository yet.] After creating one, the easiest approach to getting a local repository setup is simply:

    git clone git@github.com:michcleary/fbPic2           # cut and past the URI from the GitHub page after creating a repo
    cd fbPic2
    echo "more stuff" >> README.md
    git add 
    git commit -m 'stuff'
    git push
    

    Done!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
I'm trying to create an if statement in PHP that prevents a single post
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.