* Parent Directory*

Manage Repositories

1. Set CMS environment
  1. cmsrel CMSSW_XX_X_XX
  2. cd CMSSW_XX_X_XX/src/
  3. cmsenv

2. Clone repo from GitHub
  1. git clone https://github.com/user/some_repository
  2. cd some_repository
  3. cmsenv
  4. git checkout branch_to_clone
  5. git branch <-Make sure that the branch is correct

3. Update code from git
  1. cmsenv
  2. git remote add upstream https://github.com/xx <-Just once
  3. git fetch upstream
  4. git merge upstream/xxx <-Branch being used
4. Save modification in git
  1. git add modified.file
  2. git commit -m "Name the version"
  3. git push
  4. (In GitHub) Make pull request
Other interesting commands
  1. git remote rm XXX (for some branch)
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | WYSIWYG | More topic actions
Topic revision: r5 - 2020-06-04 - PabloMatorrasCuevas
 
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Sandbox All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 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