March 2019
Intermediate to advanced
636 pages
27h 50m
English
With the code modification done, lets try to add the source code to our Git repository. To do so, we will go through the following steps:
git add -A git commit -m "Testing master branch protection."
git push
The push command should fail with an error message, such as the following:
$ git pushCounting objects: 3, done.Delta compression using up to 8 threads.Compressing objects: 100% (2/2), done.Writing objects: 100% (3/3), 367 bytes | 367.00 KiB/s, done.Total 3 (delta 0), reused 0 (delta 0)remote: error: GH006: Protected branch update failed for refs/heads/master. ...
Read now
Unlock full access