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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
rb:git-cheatsheet [17/09/2018 16:59]
andrew [Restoring files which are deleted]
rb:git-cheatsheet [19/09/2018 16: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 ====
Line 303: Line 311:
-AWS CodeCommit+====== ​AWS CodeCommit ​====== 
 <​code>​ <​code>​

rb/git-cheatsheet.txt · Last modified: 18/09/2019 16:41 by andrew