Frequently Used Git Commands

Frequently Used Git Commands

1. Set your Identity to your repo

git config --global "Sandeep Kumar Dan"
git config --global

2. Create new local repo

git init

3. Clone new repo to local

git clone <”remote repo path”> (It creates working copy in local)

4. Add files to your working repo

git add or git add -a or git add *

5. Git Commit in local repo

git commit -m “your message”

git commit -a (Without message file add and commit)

6. Update Remote repo

git push origin

7. Check Git status of working repo

git status

AngularJs UI Route script

'use strict';
|This is a webmasters custom angularjs
var webapp = angular.module('webmastersApp', ['oc.lazyLoad','ui.router']);

webapp.config(['$stateProvider','$urlRouterProvider','$ocLazyLoadProvider',function ($stateProvider,$urlRouterProvider,$ocLazyLoadProvider) {



.state('dashboard', {
url: '/dashboard',
templateUrl: '/templates/webmasters/dashboard.html',
controller: 'dashboardController',
resolve: {
loadMyFiles:function($ocLazyLoad) {
return $ocLazyLoad.load({

Basic GIT Commands to manage project in github


These are the following basic GIT commands to manage codes on GIT-Hub.

1. Download project to local repository

git clone '{{http://github-url}}'

2. To check project status / branch

git status

WP Menu Display Code

<?php $defaults= array( 'theme_location'=> , 'menu'=>

How to do jQuery ajax post

We all know jQuery ajax post is very useful function and we should remember it always because we often use this function. Here displaying some jQuery Ajax function for developers.

$(document).ready(function(){    $.ajax({   url: 'your url',   method: 'post',   data:{id:id},   success:function()   {   alert('SuccessfullyMessage');   },                error:function()                             { alert('ErrorMessage');                             }  }); });