LinkShare_468x60v1

Wednesday, September 9, 2015

How to check array in jQuery


var dataarray = ["1", "2", "3"];

if ( $.inArray('1', dataarray) > -1 ) {

alert("checked");

}

How to clone a git branch


Create a new local branch develop and clone from remote branch origin/develop


git checkout -b develop origin/develop


How to list branches

list local branch

git branch

List remote branch

git branch -r

List all branch

git branch -a


How to switch between branch master and develop

git checkout master

git checkout develop


How to copy files/dictionaries from branch develop

git checkout develop  files/*