Download the PHP package autoframe/git-exec-hook without Composer

On this page you can find all versions of the php package autoframe/git-exec-hook. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package git-exec-hook

Autoframe is a low level framework that is oriented on SOLID flexibility

👨🏼‍💻 git-exec-hook

License: The 3-Clause BSD License Packagist Version Downloads

Http git hook call for action for fetch pull checkout commit push

Config with constants or constructor args




🚀 git install on Cpanel / WHM 🤖

💻 Ubuntu

sudo apt update
sudo apt install git
git --version

💻 CentOS 8

sudo dnf update -y
sudo dnf install git -y
git --version

💻 CentOS 7

sudo yum update
sudo yum install git
git --version

⚙️ Config

ssh / gpg / armour / fingerprint

https://docs.github.com/en/github/authenticating-to-github/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key

ssh-keygen -o

📚 List current config

git config --list

🛠️ Set config globally

git config --global user.name "Your Name"
git config --global user.email "[email protected]"

git config --global core.logallrefupdates true
git config --global core.autocrlf false
git config --global core.symlinks false
git config --global core.bare false
git config --global core.ignorecase true
git config --global core.eol lf

🔧 Set config to current project

just ignore --global

cd ~/some-dir/project-dir

🍀🌈🦄 Clone

cd ~/some-dir/project-dir
git clone [email protected]:autoframe/xxxx.git
git clone 'https://github.com/autoframe/xxxx.git'

⛔ clone private repos

Create a new token for the repo: https://github.com/settings/tokens

git clone https://user:[email protected]/autoframe/repo/
git clone https://user:[email protected]/username/repo.git
git clone https://oauth2:<YOUR-PERSONAL_ACCESS-TOKEN>@github.com/<your_user>/<your_repo>.git
git clone https://<pat>@github.com/<your account or organization>/<repo>.git

📄 Afterward, you can do the following two steps to normalize all files:

git rm --cached -r .  ⚠️ Remove every file from git's index.
git reset --hard      ⚠️ Rewrite git's index to pick up all the new line endings.
git reset --hard HEAD~1 2>&1 ⚠️ Rollback commits back to head

❗⚠️ Reset commands

git checkout .         #If you want to revert changes made to your working copy, do this:
git reset              #If you want to revert changes made to the index (i.e., that you have added), do this. Warning this will reset all of your unpushed commits to master!:
git clean -f           #If you want to remove untracked files (e.g., new files, generated files):
git clean -fd          #Or untracked directories (e.g., new or automatically generated directories):

git revert <commit 1> <commit 2>     #If you want to revert a change that you have committed, do this:

🌐 Read from upstream

git pull        #Pull branch info
git fetch       #Refresh branches

📥 Checkout

git checkout master     #Checkout master branch
git checkout -q master  #Quiet, suppress feedback messages.
git checkout -f master  #When switching branches, proceed even if the index or the working tree differs from HEAD. This is used to throw away local changes.

🙈 checkout args

https://git-scm.com/docs/git-checkout

-q, --quiet 

Quiet, suppress feedback messages.

-f, --force 

When switching branches, proceed even if the index or the working tree differs from HEAD. This is used to throw away local changes.

-b

git checkout -b new-branch-name

Create a new branch named and start it at ; see git-branch(1) for details.

-m, --merge

When switching branches, if you have local modifications to one or more files that are different between the current branch and the branch to which you are switching, the command refuses to switch branches in order to preserve your modifications in context. However, with this option, a three-way merge between the current branch, your working tree contents, and the new branch is done, and you will be on the new branch.

--ours, --theirs

When checking out paths from the index, do not fail upon unmerged entries; instead, unmerged entries are ignored.

📤 Push

git diff
git add .
git commit -m "#uztpOegQ comment info"
git commit -m "PROPT-6264 second commit"

git push <remote> <branch>
git push -u origin branch_name

🙈 push args

https://git-scm.com/docs/git-push

-u, --set-upstream

For every branch that is up-to-date or successfully pushed, add upstream (tracking) reference, used by argument-less git-pull[1] and other commands.

-q, --quiet

Suppress all output, including the listing of updated refs, unless an error occurs. Progress is not reported to the standard error stream.

--all, --branches

Push all branches (i.e. refs under refs/heads/); cannot be used with other .


All versions of git-exec-hook with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package autoframe/git-exec-hook contains the following files

Loading the files please wait ....