5

I'm working on GIT repository. I have the project code on my local machine.

I have created a repository in Bitbucket, Now I want to push all my code into this repository.

for that, I follow all commends mentioned below

git init
git config --global user.name "Siddhu"
git config --global user.email "siddhartha.e@example.in"
git config --list (to check configuration)
git add --all
git status (to check status)
git remote add origin MY_REPO_LINK
git commit -m "my first commit"

All above commands work fine. When I try to Push. I'm getting error

error: cannot spawn git: Function not implemented

my command is: git push -u origin master

I'm working on windows 7 machine. I did some research But I didn't find any solution. How can I solve this issue? Thanks in advance

I think I need to install older version

Siddhartha esunuri
  • 1,104
  • 1
  • 17
  • 29
  • which git implementation/version are you using? – BNT Feb 05 '18 at 08:56
  • git version 2.16.1.windows.2 @BNT – Siddhartha esunuri Feb 05 '18 at 08:58
  • can you also add the command you want to `push` with? It [should work](https://stackoverflow.com/a/28123627/7926064) in general... – BNT Feb 05 '18 at 08:59
  • which transport are you using in your `MY_REPO_LINK`? Like `https` or `ssh`? Are you behind a firewall/proxy? And can you succesfully clone your fresh project into some other folder? If yes, copy the code over after cloning. – BNT Feb 05 '18 at 09:04
  • im using https @BNT – Siddhartha esunuri Feb 05 '18 at 09:13
  • I have fresh installed git 2.16.1.windows.2 and just trying to clone a repository using command `git clone https://github.com/ibmdb/node-ibm_db/` and getting this error. Unable to clone any repository from git due to this error. Thanks. – Bimal Jha Feb 06 '18 at 07:59
  • I un-installed git version 2.16.1.windows.2 and installed previous git version 2.16.1.windows.1. It has fixed the issue. Thanks. – Bimal Jha Feb 06 '18 at 08:32

1 Answers1

4

According to the official instructions and some other answer you should try

git push -u origin --all

for the first time.

This depends on how you created the BitBucket repository though, so this overview gives you some choices on how to procede.

I assume this has to do with bare repositories.

BNT
  • 936
  • 10
  • 27