Skip to main content

GIT command

https://kbroman.org/github_tutorial/pages/branching.html

Note:- Always get pull request before working on any branch
git pull  branch name or  git pull  origin branch name

To commit code
git commit -m"comment for changes"


To push the code
git push origin staging


To hold the branch in the same state
git stash

To get the stashed branch in normal mode
git stash pop

If code conflict during git command or reverting conflict occur while git pull or branch chekout
git reset -hard HEAD

To get in working branch or switch to another branch
git checkout staging

To create a new branch
git checkout -b branch name


Comments

Popular posts from this blog

my queries

ADDED TWO NEW CONDITION- case when (EXTRACT(EPOCH FROM (created))/60>30 and sla='Normal SR' and status='new' then 1 else 0 end as SLA_NORML_ITDSK_BREACH, case when (EXTRACT(EPOCH FROM (created))/60>15 and sla='High Priority SR' and status='new' then 1 else 0 end as SLA_HIGH_ITDSK_BREACH, # SO  FINAL      VIEW FOR TICKETS IS AS GIVEN BELOW-------====>>> CREATE VIEW tickets_master AS select id,effectiveid,ismerged,queue,type,owner,subject,initialpriority,finalpriority,priority,timeestimated,timeworked,status,sla,timeleft,told,starts::timestamp AT time zone 'utc' as starts,started::timestamp AT time zone 'utc' as started,due::timestamp AT time zone 'utc' due,resolved::timestamp AT time zone 'utc' resolved,lastupdatedby,lastupdated::timestamp AT time zone 'utc' lastupdated,creator,created::timestamp AT time zone 'utc' as created ,case when (EXTRACT(EPOCH FROM (created::timestamp AT time...