Difference between revisions of "Git"

From Mu2eWiki
Jump to navigation Jump to search
(Replaced content with " This page is obsolete, please see GitHubWorkflow")
Tag: Replaced
 
(104 intermediate revisions by 5 users not shown)
Line 1: Line 1:
  
==Introduction==
+
This page is obsolete, please see [[GitHubWorkflow]]
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 [[CVS|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.
 
 
 
[https://github.com/KFTrack/BTrk BTrk github repo]
 
 
 
==Quick Start==
 
Please also see the basic [[CodeRecipe|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 [https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e detailed mu2e instructions]
 
 
 
<font>need to add instructions on first-time use: ~.gitconfig</font>
 
 
 
* checkout the main repository
 
** readonly: <pre>git clone http://cdcvs.fnal.gov/projects/mu2eofflinesoftwaremu2eoffline/Offline.git</pre>
 
** with kerberos authentication for committing code <pre>git clone ssh://p-mu2eofflinesoftwaremu2eoffline@cdcvs.fnal.gov/cvs/projects/mu2eofflinesoftwaremu2eoffline/Offline.git</pre>
 
* checkout the head to a local working branch (recommended)
 
<pre>get checkout -b work</pre>
 
* see the history of a file
 
<pre>git log fileSpec</pre>
 
* list tags
 
<pre>git tag -l</pre>
 
* checkout a tag or branch into the working area
 
<pre>get checkout tagOrBranchName </pre>
 
* update the local repository
 
<pre>git fetch</pre>
 
* update the local repository and checkout the head into the working area
 
<pre>git pull</pre>
 
* see what the status is
 
<pre>git status</pre>
 
 
 
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 detailed mu2e instructions]
 
 
 
 
 
==References==
 
*[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki/Git_Workflow_for_Mu2e mu2e git instructions]
 
*[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 Fermilab redmine]
 
*[http://mu2e-docdb.fnal.gov:8080/cgi-bin/ShowDocument?docid=4527Andrei's talk] at the Software and Simulation Meeting, Sept 17, 2014.
 
*[https://cdcvs.fnal.gov/redmine/projects/cet-is-public/wiki/Marc's_suggested_git_workflow Marc P's suggested git workflow] for simple git projects
 
*[https://cdcvs.fnal.gov/redmine/projects/fermi-redmine/wiki/GitWorkshop Fermilab git workshop] and related materials
 
*[https://cdcvs.fnal.gov/redmine/projects/mu2eofflinesoftwaremu2eoffline/wiki managing and creating] new redmine repositories
 

Latest revision as of 20:11, 13 May 2021

This page is obsolete, please see GitHubWorkflow