How to create a new branch git

How create a new branch git

create a new branch git

#git checkout -b BRANCH_NAME

Here is conman git command
STEP 1 : clone

# git clone --single-branch -b BRANCH_NAME  https://github.com/**************.com.git

STEP 2: Config

# git config push.default upstream

STEP 3: Check out

#git checkout BRANCH_NAME

STEP 4: Do the changes and add

 
#git add .

STEP 5: Commit the changes

#git commit -m "home page change"

STEP 6: Finally

#git push origin BRANCH_NAME

You almost done

JQuery code to append html using div id

Here am going to show you JQuery code to append html using div id
suppose i have html code like below i need append a text content to the html area when user entering any text

 

<input type="text" value="" id="inputarea">

<div id="html_area">

</div>

 

$(document).ready(function(){
$("#inputarea").blur(function(){
  $("#html_areap").append("<b>User Is typing a text</b>");
});
});

PHP code to find the current year,current month and current day

PHP have date function get all the information related to date here we have to search find out PHP code to find the current year,current month and current day , current year,current month and current day can be easily find out using date() function let me check how to do it

php code to find current year


<?php

echo date('Y');  //Capital Letter Y

Out Put

2019

?>

<?php

echo date('y');  //Small letter y

Out Put

19

?>

php code to find current month


<?php

 echo date('M');  

Out Put

Jul

?>

<?php

 echo date('m');  

Out Put

07

?>

php code to find current day

 


<?php

 echo date('D');  

Out Put

Mon

?>

<?php

 echo date('d');  

Out Put

08

?>