DEV Community

Cover image for Workflow Automation in Git with Basic Commands

Workflow Automation in Git with Basic Commands

Shahroz Nawaz on January 17, 2017

Github is the new open source game changer in application development. You can host your code on GitHub and do amazing things including branching, ...
Collapse
 
lipoqil profile image
Mailo Světel

git push -f in beginners guide?! I am pretty sure, that is not something what people should learn at the beginning if ever

Collapse
 
_shahroznawaz profile image
Shahroz Nawaz

Hi that -f for the forced push otherwise it can be used simple as "git push origin master"

Collapse
 
codingcardio profile image
codingcardio

You shouldn't be telling beginners to use force at all.

Thread Thread
 
_shahroznawaz profile image
Shahroz Nawaz

Thanks I've updated the command.

Collapse
 
svandragt profile image
Sander van Dragt

The PHP code for the GitHub webhook is insecure. Anyone can all it any number of times and bring down your site.

After you've setup the webhook please read developer.github.com/webhooks/secu... and secure your webhook with a secret!

I would also rename github.php to a .php so it's not guessable by attackers, for example using textmechanic.com/text-tools/random... to come up with a filename.

It's quite sad that I could not easily find a gist with a recommended example.

Collapse
 
c0de profile image
Adnan Hajdarevic