Git: Difference between revisions
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
==Introduction== | ==Introduction== | ||
The primary source code management system for the Mu2e Offline software is a git that is hosted on the Fermilab redmine site. | The primary source code management system for the Mu2e Offline software is a git that is hosted on the Fermilab redmine site. | ||
Other Mu2e software is managed using [ | Other Mu2e software is managed using [https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Revision_Control_Systems mu2e|other source code management systems]. | ||
Please follow these [https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e instructions] for the mu2e conventions on commits. | Please follow these [https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e commit instructions] for the mu2e conventions on commits. | ||
[https://github.com/KFTrack/BTrk BTrk github repo] | The BTrk UPS product, which contains our kalman fit code, is stored in the [https://github.com/KFTrack/BTrk BTrk github repo] | ||
==Quick Start== | ==Quick Start== | ||
Line 34: | Line 34: | ||
Please see the references or many web resources for details on git commands and features. | Please see the references or many web resources for details on git commands and features. | ||
If you are going to commit anything, you must understand and follow the [https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e | If you are going to commit anything, you must understand and follow the [https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e mu2e commit instructions] | ||
==References== | ==References== | ||
*[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e mu2e git instructions] | *[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Revision_Control_Systems mu2e git and CVS] | ||
*[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e mu2e git commit instructions] | |||
*[http://git-scm.com/ git home] [http://git-scm.com/doc Documentation] [https://git-scm.com/docs reference] | *[http://git-scm.com/ git home] [http://git-scm.com/doc Documentation] [https://git-scm.com/docs reference] | ||
*[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/repository redmine repository browser] | *[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/repository redmine repository browser] |
Revision as of 21:48, 17 February 2017
Introduction
The primary source code management system for the Mu2e Offline software is a git that is hosted on the Fermilab redmine site. Other Mu2e software is managed using mu2e|other source code management systems.
Please follow these commit instructions for the mu2e conventions on commits.
The BTrk UPS product, which contains our kalman fit code, is stored in the BTrk github repo
Quick Start
Please also see the basic code recipe for an introduction to setting up the environment, checking out code and building.
If you are going to commit anything, you must understand and follow the detailed mu2e instructions
need to add instructions on first-time use: ~.gitconfig
- checkout the main repository
- readonly:
git clone http://cdcvs.fnal.gov/projects/mu2eofflinesoftwaremu2eoffline/Offline.git
- with kerberos authentication for committing code
git clone ssh://p-mu2eofflinesoftwaremu2eoffline@cdcvs.fnal.gov/cvs/projects/mu2eofflinesoftwaremu2eoffline/Offline.git
- readonly:
- checkout the head to a local working branch (recommended)
get checkout -b work
- see the history of a file
git log fileSpec
- list tags
git tag -l
- checkout a tag or branch into the working area
get checkout tagOrBranchName
- update the local repository
git fetch
- update the local repository and checkout the head into the working area
git pull
- see what the status is
git status
Please see the references or many web resources for details on git commands and features. If you are going to commit anything, you must understand and follow the mu2e commit instructions
References
- mu2e git and CVS
- mu2e git commit instructions
- git home Documentation reference
- redmine repository browser
- Fermilab redmine
- talk at the Software and Simulation Meeting, Sept 17, 2014.
- Marc P's suggested git workflow for simple git projects
- Fermilab git workshop and related materials
- managing and creating new redmine repositories