This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
rb:git-cheatsheet [17/09/2018 16:00]
andrew [Restoring files which are deleted]
rb:git-cheatsheet [19/09/2018 15:33]
andrew [git push]
Line 92: Line 92:
   $ git config --global credential.helper cache   $ git config --global credential.helper cache
 +If this doesn'​t work it may fail with a message:​- ​
 +  error: src refspec master does not match any.
 +  error: failed to push some refs to '​origin'​
 +The reason for this is that there is only a local master branch created when commits have been done, so create or touch a file, add it and then repush to remote.
 ==== git status ==== ==== git status ====

rb/git-cheatsheet.txt ยท Last modified: 28/05/2020 13:58 by andrew