1

I'm new at GitHub and always get an error.. when sending "git push" out of my shell: The error: "master -> master (shallow update not allowed) error: failed to push some refs to git@github.com/myuser/myproject.git"

I really don't understand this. I want to push the first time to GitHub. Before I created a repository and ssh-key.

I am using Windows 8.1 and the GitHub Bash shell (git version 1.9.4 msysgit 2).

ScientiaEtVeritas
  • 4,458
  • 2
  • 27
  • 48
  • Did you `init`iate the repository in GitHub first? If so, did you clone the repo locally? – kums Oct 16 '14 at 23:03
  • I don't know what you mean by "initiate the repository in GitHub". I have created the repository and cloned it with "git clone https://github.com/myuser/myproject.git" I even don't know what a shallow clone is. My files aren't online. – ScientiaEtVeritas Oct 17 '14 at 04:52

1 Answers1

1

t5538-push-shallow.sh shows that this error message shoould only be seen after a git clone --depth x.

Try again the sequence:

git clone git@github.com/myuser/myproject.git
cd myproject
// edit a file
git add .
git commit -m "First modif"
git push
VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283