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

  • Home
  • SEARCH
  • 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 385471
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T15:28:59+00:00 2026-05-12T15:28:59+00:00

I cloned my GitHub repository here at home, and obviously screwed something up. Anyway,

  • 0

I cloned my GitHub repository here at home, and obviously screwed something up. Anyway, I made a lot of changes, or I’d wipe out the directory and do it all again.

First of all, when I do ssh git@github.com I get the following:

PTY allocation request failed on channel 0
ERROR: Hi asdfadfs! You've successfully authenticated, but GitHub does not provide shell access Connection to github.com closed.

I get an error, but it says I’ve successfully authenticated?

git add .
git commit -a -m "hello"
git push origin master
[master 74a5e82] hello
3 files changed, 45 insertions(+), 12 deletions(-)
fatal: The remote end hung up unexpectedly

This obviously doesn’t work. And I’m new to git, so now when I try to commit this happens:

git add .
git commit -a -m "hello"
git push origin master
# On branch master
nothing to commit (working directory clean)
fatal: The remote end hung up unexpectedly

And finally, git pull ?

$ git pull
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me either.    Please
specify which branch you want to merge on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
configure the following variables in your configuration
file:

branch.master.remote = <nickname>
branch.master.merge = <remote-ref>
remote.<nickname>.url = <url>
remote.<nickname>.fetch = <refspec>

See git-config(1) for details.

Here’s my .git/config

[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
        ignorecase = true
[branch "master"]
[remote "origin"]
        url = git://github.com/my/project.git
        fetch = +refs/heads/*:refs/remotes/origin/*

That url variable actually points to my correct git url. Thanks.

  • 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-05-12T15:29:00+00:00Added an answer on May 12, 2026 at 3:29 pm

    Use ssh:// in your .git/config, not git://. git:// is only used for cloning a repository. Straight from my libcloud repository — I use “mothership” for reasons irrelevant to this post:

    [remote "mothership"]
        url = ssh://git@github.com/jedsmith/libcloud.git
        fetch = +refs/heads/*:refs/remotes/origin/*
    

    The clue should be that you’re using ssh to test your connectivity…

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

Sidebar

Related Questions

I've just cloned a repository, made some changes and now I'd like to send
I cloned a Git repository from my GitHub account to my PC. I want
I forked a repository on GitHub. I then cloned my fork into a folder
I cloned the Protobuf-PHP repository: https://github.com/drslump/Protobuf-PHP.git that I found at https://github.com/drslump/Protobuf-PHP , and I
I've just cloned bootstrap from the official github repository. When trying to compile the
I have a repository on GitHub located here . I created a working branch
I am pulling a git repository from github. When I clone the repo there
I'm currently mirroring an existing SVN repository on Github. For the initial clone I
I have cloned a remote SVN repository with git-svn. I have modified a pom.xml
Summarised Question: Are github-hosted sub repositories within a mercurial/kiln repository possible, and if so

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.