<style type="text/css" media="all"> pre { text-align: left; padding: 10px;margin-left: 0px; color: black; } pre.command {background-color: lightgrey;} pre.cfg {background-color: lightblue;} pre.code {background-color: lightpink;} pre.output {background-color: lightgreen;} </style> ---+!! Command and Shortcut for CMS <br />%TOC{title="Contents:"}% ---++ Git Instructions [[ASmallGitCMSSWTutorial][Click here ]] for !CMS Twiki Links for !GitHub Some useful commands: <pre>%RED%## To clone the git repository%ENDCOLOR% git clone .git %RED%## To check which branch and to go to that branch%ENDCOLOR% git branch %RED%# to see which branch you are in%ENDCOLOR% git checkout branch%RED% # to go a branch%ENDCOLOR% git checkout -b branch %RED% # to create a branch%ENDCOLOR% %RED%## to fetch a branch on someone else's fork on GitHub%ENDCOLOR% git remote add theirusername https://github.com/theirusernam/reponame git fetch theirusername git checkout -b mynamefortheirbranch theirusername/theirbranch </pre> For more Tips and Tricks on git : * [[%ATTACHURL%/GitTipsAndTricks.pdf][GitTipsAndTricks.pdf]]<span></verbatim></span> ---++ Tricks for CMSSW <pre>%RED%## To expand the python code%ENDCOLOR% open('pydump.py','w').write(process.dumpPython())<br /><br /> </pre> ---+++ CRAB For viewing the crab job status via web please follow: http://dashb-cms-job.cern.ch/dashboard/templates/task-analysis For understanding of crab configuration file please follow:<a href="CMSPublic.CRAB3ConfigurationFile" rel="nofollow" target="_blank">https://twiki.cern.ch/twiki/bin/view/CMSPublic/CRAB3ConfigurationFile</a> <span style="background-color: transparent;">For knowing meanings of exit codes please follow: <a href="CMSPublic.JobExitCodes" rel="nofollow" target="_blank">https://twiki.cern.ch/twiki/bin/view/CMSPublic/JobExitCodes</a></span> ---+++ TIFR tier 2 <pre>%RED%##For looking at tier 2 location of crab output:%ENDCOLOR% rfdir /dpm/indiacms.res.in/home/cms/store/user/ptiwari/< folder name> %RED%##Listing of directories:%ENDCOLOR%<br />xrdfs <a href="http://se01.indiacms.res.in/" rel="nofollow" target="_blank">se01.indiacms.res.in</a> ls -l -u //dpm/indiacms.res.in/home/cms/store/user/<username>/<your full directory><br /> %RED%##T2_IN_TIFR for stage out from CRAB. Here the things one can do:<br />%ENDCOLOR% %RED%# Login to T2_IN_TIFR from lxplus:%ENDCOLOR%<br />*xrd se01.indiacms.res.in <http://se01.indiacms.res.in>*<br /> %RED%# Outputs directory:%ENDCOLOR%<br /> */cms/store/user/*<br /> %RED%# Copy any file from T2_IN_TIFR to lxplus:%ENDCOLOR%<br />*xrdcp -R root://se01.indiacms.res.in:1094//cms/store/user/ptiwari/filenme<http://se01.indiacms.res.in:1094//cms/store/user/ptiwari/filenme>;/afs/cern.ch/user/<http://cern.ch/user/>*<br /> %RED%## To view file/directory in your TIFR T2 %ENDCOLOR% rfdir /dpm/indiacms.res.in/home/cms/store/user/<username>/<directory><br /> %RED%## To remove file/directory in your TIFR T2 %ENDCOLOR% rfrm -rf /dpm/indiacms.res.in/home/cms/store/user/<username>/<directory><br /> %RED%## To use your root file from TIFR T2 in lxplus or any other machine with CMSSW %ENDCOLOR% root://se01.indiacms.res.in:1094//cms/store/user/<username>/<directory>/<filename><br /> %RED%## To check disk quota in your TIFR T2 %ENDCOLOR% /opt/lcg/bin/dpns-du /dpm/indiacms.res.in/home/cms/store/user/<username> </pre> -- Main.PraveenChandraTiwari - 2017-09-08
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
pdf
GitTipsAndTricks.pdf
r1
manage
169.3 K
2017-09-08 - 09:50
PraveenChandraTiwari
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r7
<
r6
<
r5
<
r4
<
r3
|
B
acklinks
|
V
iew topic
|
WYSIWYG
|
M
ore topic actions
Topic revision: r7 - 2017-10-27
-
PraveenChandraTiwari
Home
Plugins
Sandbox for tests
Support
Alice
Atlas
CMS
LHCb
Public Webs
Sandbox Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
PDF version
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Cern Search
TWiki Search
Google Search
Sandbox
All webs
E
dit
A
ttach
Copyright &© 2008-2021 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use
Discourse
or
Send feedback