This work environment is exclusively for Git Setups. If you are getting set up for a CVS Setup please see "CVS Help"

Any information that is subject to userprivate information, or has multiple options can be identified by the color scheme that is presented as seen.

Seeing the →  symbol means pressing enter is required during a script

Seeing the <tab> means that the following information will be filled in after the tab

STILL IN PROGRESS

Commit Git Code to Servers

ssh -X unix_username@lcls-dev3

cd desired_git_repository

git status                                                                                                                                                                                                

git add file location                                                                                                                                                                                 

git commit -m “message”                                                                                                                                                                       

git push                                                                                                                                                                                                 

git tag                                                                                                                                                                                                   

git tag -a tag name -m “message”                                                                                                                                                          

git push origin tag name

cd ../..

eco

Repository

Tag Name → →

EPICS Environment → →                                                                                                                                                              

Press Enter or enter /afs/slac/g/lcls/epics/EPICS Environment/modules → → → →

cd repository/tag name

make

cram push                                                                                                                                                                                            

cram upgrade -f facility -i ioc/cpu repo                                                                                                                                                 

iocConsole cpu → root → reboot -f                                                                                                                                                      



//tells modified/added files, do at top level

//adds file to be pushed

//adds commit with message

//pushes code to git repository, skip to cram if testing

//check tags

//make sure RELEASE NOTES have changed






//typically you are in the right environment and can press enter




//may need to –freshen

//facility is either ALL, LCLS, FACET, Dev

//can be done in old versions, currently broken

Re-Tagging For GIT

git ls-remote –tags                                                                                                                                                                             

git tag -d tag name                                                                                                                                                                           

git push origin :refs/tags/tag name                                                                                                                                                    

git tag tag name                                                                                                                                                                                

git push origin tag name                                                                                                                                                                   

 // list all remote tags

// delete local tag

// push tag deletion to remote

// tag local branch again

// push tag to remote

Branch Help (1)

Make Branches

git checkout -b branchname

git push origin brandname

Find Branches

git branch                                                                                                                                                                                         

git branch -r                                                                                                                                                                                     

git branch -a                                                                                                                                                                                     

git branch –merged                                                                                                                                                                          

git branch –no-merged                                                                                                                                                                     

git branch -r –merged                                                                                                                                                                      

git branch -r –no-merged                                                                                                                                                                




// all local branches

// all remote branches

// all branches (local and remote)

// all local merged branches

// all local unmerged branches

// all remote merged branches

// all remote unmerged branches

  • No labels