Error one:
1 using 2 3 $ git push - u origin master 4 the following error occurs: 5 6 error: src refspec master does not match any. 7 error: failed to push some refs to ' [email protected]:hahaha/ftpmanage.git '
Analysis and processing
1 Reason: 2 3 The local warehouse is empty 4 5 Solution: Use the following command to add files; 6 7 $ git add add.php addok.php conn.php del.php edit.php editok.php ftpsql.sql index.php 8 9 $ git commit -m " init files "
Error two:
$ git push -u origin master Warning: Permanently added the RSA host key for IP address 'xx.xx.xxx.xxx' to the list of known hosts. To [email protected]:hahaha/ftpmanage.git ! [rejected] master -> master (fetch first) error: failed to push some refs to '[email protected]:hahahah/ftpmanage.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Analysis and processing
1 Prompt to use git pull after push 2 3 Use the following commands to solve: 4 5 Copy code 6 $ git pull -- rebase origin master 7 warning: no common commits 8 remote: Counting objects: 3 , done. 9 remote: Total 3 ( delta 0 ), reused 0 (delta 0 ), pack-reused 0 10 Unpacking objects: 100 % ( 3 / 3 ), done. 11 From github.com:hahah/ ftpmanage 12 * branch master -> FETCH_HEAD 13 * [new branch] master -> origin/master 14 First, rewinding head to replay your work on top of it... 15 Applying: init files