...Development Server Production Server There are 3 repositories upstream, a fork of OpenMage in GitHub, the default branch is main origin, the project repo in BitBucket, set default branch to...
Create local repo [local] Parent of root folder (without creating the root folder), git clone the upstream repo. At completion, root folder is created with all the source code...
...location ~ ^/.*\.(sh|pl|swp|phar|sql|conf|tar|.+gz)$ { return 444; } location ~ /\.(svn|git|hg|htpasswd|bash|ssh) { return 444; } location ~* /(lib|media|shell|skin)/.*\.php$ { deny all; }
...the target is matched with an empty block # http://stackoverflow.com/a/16304073 location ~ /\.thumbs { } # Skip .git, .htpasswd etc location ~ /\. { return 404; } # Disable all methods besides HEAD, GET and POST. if ($request...
Best results in other decks
...pushed when saying git push. Our recommendation is to set it to current. From the git-config documentation: push.default Defines the action git push should take if no refspec is...
...check your setting, do the following. By default, it will return matching (see above). $ git config --global push.default matching So to change that to push only current branches, just go...
git checkout is the swiss army of git commands. If you prefer a semantically more meaningful command for restoring tasks, use git restore instead. With this command you...
Info For this use case you can also use git checkout. Sources Git - git-restore Documentation Also see Git commands to discard changes Git restore vs reset