Unable to push files to git due to: failed to push some refs : <p>I have a directory that i want to turn into a git project.</p>

<p>I created a new project in gitlab and then i did the following:</p>

<pre><code>git init
git remote add origin git@gitlab.com:a/b/c.git
git add .
git commit -m "Initial commit"
git push -u origin master
</code></pre>

<p>In addition, I created the following <code>.gitignore</code> file:</p>

<pre><code>*
!*/scripts
!*/jobs
</code></pre>

<p>After running <code>git push -u origin master</code> i got the following error:</p>

<pre><code>Counting objects: 33165, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (32577/32577), done.
Writing objects: 100% (33165/33165), 359.84 MiB | 1.70 MiB/s, done.
Total 33165 (delta 21011), reused 0 (delta 0)
remote: Resolving deltas: 100% (21011/21011), done.
remote: GitLab: 
remote: A default branch (e.g. master) does not yet exist for a/b/c
remote: Ask a project Owner or Maintainer to create a default branch:
remote: 
remote:   https://gitlab.com/a/b/c/project_members
remote: 
To gitlab.com:a/b/c.git
 ! [remote rejected] master -&gt; master (pre-receive hook declined)
error: failed to push some refs to 'git@gitlab.com:a/b/c.git'
</code></pre>

<p>What could be the issue?
Please advise</p>
