Git Push Fatal Error

#1

Hello Everyone,

Every time I use the command git push ionic master it always returns an error fatal: The remote end hung up unexpectedly. I don’t know what causes this error.

I even tried using this command git config http.postBuffer 524288000 that was suggested from this post (https://stackoverflow.com/questions/15240815/git-fatal-the-remote-end-hung-up-unexpectedly) but it didn’t solve the problem.

I hope someone can help me with this. Thank you in advance :slight_smile:

#2

Hi, @OliverPrimo
First, tell me what’s your branch name in which you want to push your code the command of pushing your code into git is: git push origin branch_name

ex: If your branch name is master then you need to use the command
git push origin master

#3

Yeah. But according to Ionic, these are the commands needed to push changes:

git add .
git commit -m "Your Awesome Changes!"
git push ionic master

I’ve been using these commands for a while now but this is the first time I’ve encountered this problem.

#4

Try using this commands may be your problem resolved.

#5

I’ve tried these commands just now and it returned:

fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.