brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
brew install git bash-completion
Configure things:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"
There are many Git workflows out there, I heavily suggest also reading the atlassian.com [Git Workflow][article] article as there is more detail then presented here.
The two prevailing workflows are [Gitflow][gitflow] and [feature branches][feature]. IMHO, being more of a subscriber to continuous integration, I feel that the feature branch workflow is better suited.
When using Bash in the command line, it leaves a bit to be desired when it comes to awareness of state. I would suggest following these instructions on [setting up GIT Bash autocompletion][git-auto].
When working with a centralized workflow the concepts are simple, master
represented the official history and is always deployable. With each now scope of work, aka feature, the developer is to create a new branch. For clarity, make sure to use descriptive names like transaction-fail-message
or github-oauth
for your branches.
• SSH to your server to start creating a subdomain (https://library.linode.com/hosting-website#sph_configuring-name-based-virtual-hosts) | |
• Go to ~/public/ | |
› mkdir -p sub.example.com/{public,log,backup} | |
› cd sub.example.com/public/ | |
› nano index.html | nano index.php | |
• Write 'Hello world' or whatever, we just need a html|php file to test with |
Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.
In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.
Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j
Anonymous function means "function without a name".
This is one of the relatively few cases where the Wikipedia definition of a word, while not entirely wrong, is misleading. Lambdas and anonymous functions are distinct ideas.
These ideas are commonly confused because in many programming languages (and lambda calculus) all lambdas are anonymous or vise verse.
In JavaScript, not all lambdas are anonymous, and not all anonymous functions are lambdas, so the distinction has some practical meaning.
#!/bin/bash | |
# ------------------------------------------------------------------ | |
# Git Daily Scrum (stand-up meeting) helper. | |
# | |
# The script helps you remember what you did last time and facilitates | |
# writing daily log for remote teams. Be aware that it assumes that | |
# meetings are conducted at the same time every day. | |
# | |
# Installation: | |
# 1. Place the script in some folder, e.g. your home: |
DELIMITER $$ | |
DROP PROCEDURE IF EXISTS setupLogging $$ | |
CREATE PROCEDURE setupLogging() | |
BEGIN | |
CREATE TABLE IF NOT EXISTS sp_logger(ts timestamp DEFAULT current_timestamp, thingID bigint, msg varchar(512)) ENGINE = MyISAM; | |
END $$ | |
CALL setupLogging() $$ | |
DROP PROCEDURE IF EXISTS setupTmpLog $$ |