Skip to content

Instantly share code, notes, and snippets.

View kshirodpatel's full-sized avatar
🎯
Focusing

Kshirod Patel kshirodpatel

🎯
Focusing
  • https://github.com/magnigenie-labs
  • Bhubaneswar
View GitHub Profile
## -- Initializing a new git repository
$$ git init
## -- Useful git log commands
$$ git log --oneline ## print short sha in one line
$$ git log -3 ## show only first 3 commit
$$ git log --author="John" ## show commits only by this author
## -- Cloning a git repository
function mysite_pending($order_id) {
error_log("$order_id set to PENDING", 0);
}
function mysite_failed($order_id) {
error_log("$order_id set to FAILED", 0);
}
function mysite_hold($order_id) {
error_log("$order_id set to ON HOLD", 0);
}
function mysite_processing($order_id) {