You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: unable to push to unqualified destination: master
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'https://github.com/foo/bar.git'
(because of github refused for too big size pushing)
and, you've never commit to the remote github repository.
$ git clone original_repository temp
$ cd temp
$ git reset --soft commit_id_you_want_to_rewind # means first commit for minimize amount of size to push
$ git push origin master
$ cd $original_repository
$ git log | grep commit | awk '{print $2}' | tac > commits.txt
$ vi commits.txt # remove commit ids which you've already pushed.
$ cat commits.txt | while read i ; do git push -u origin $i:master ; done