How to use GIT

  1. GIT access
  2. Register on the site https://git.jinr.ru with @jinr.ru mail and add SSH key https://git.jinr.ru/help/ssh/README to your profile – https://git.jinr.ru/profile/keys/new.

    Access without SSH (zip archive):

    MpdRoot archive
    BmnRoot archive
    
  3. Clone GIT repository
  4. for mpdroot:

    git clone git@git.jinr.ru:nica/mpdroot.git
    

    for bmnroot:

    git clone git@git.jinr.ru:nica/bmnroot.git
    
  5. To update the remote url in your local repository run:
  6. for mpdroot:

    git remote set-url origin git@git.jinr.ru:nica/mpdroot.git
    

    for bmnroot:

    git remote set-url origin git@git.jinr.ru:nica/bmnroot.git
    
  7. Update my local branch from origin
  8. git pull
    
  9. Create new branch and use it
  10. git branch my_branch
    git checkout my_branch
    
  11. Add new file or folder in GIT
  12. git add FILE
    
  13. Add all new files or folders in GIT
  14. git add .
    
  15. Save the changes in local repository (origin branch)
  16. git commit -am "Comments"
    
  17. Save the changes in remote repository
  18. git push origin my_branch
    
  19. If you want merge my_branch with protected pro (production) branch create merge request on https://git.jinr.ru