ALICE-Juniors Meeting

Slides:



Advertisements
Similar presentations
 Please sit next to your partner.  If you don’t have a partner, please find one now.
Advertisements

Version Control System (Sub)Version Control (SVN).
STEPS TO DOWNLOAD THE SOFTWARE EXE’S FROM WEBSITE.
1 CSE 390 “Lecture 11” Version control with Git slides created by Ruth Anderson, images from
Git for Version Control These slides are heavily based on slides created by Ruth Anderson for CSE 390a. Thanks, Ruth! images taken from
Getting Started with GIT. Basic Navigation cd means change directory cd.. moves you up a level cd dir_name moves you to the folder named dir_name A dot.
Created by: Maria Abrahms Modified Date: Classification: How to get it done Contributing to OpenStack.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 8-Oct-15.
Drexel University Software Engineering Research Group Git for SE101 1.
Version Control Systems academy.zariba.com 1. Lecture Content 1.What is Software Configuration Management? 2.Version Control Systems (VCS) 3.Basic Git.
…using Git/Tortoise Git
Git workflow and basic commands By: Anuj Sharma. Why git? Git is a distributed revision control system with an emphasis on speed, data integrity, and.
SWEN 302: AGILE METHODS Roma Klapaukh & Alex Potanin.
Team 708 – Hardwired Fusion Created by Nam Tran 2014.
1 GIT NOUN \’GIT\ A DISTRIBUTED REVISION CONTROL AND SOURCE CODE MANAGEMENT (SCM) SYSTEM WITH AN EMPHASIS ON SPEED. INITIALLY DESIGNED AND DEVELOPED BY.
GIT.
Intro to Git presented by Brian K. Vagnini Hosted by.
Introduction to Git Yonglei Tao GVSU. Version Control Systems  Also known as Source Code Management systems  Increase your productivity by allowing.
Introduction to Git - Chirag Dani. Objectives Basics of Git Understanding different “Mindset of Git” Demo - Git with Visual Studio.
Git How to 1. Why Git To resolve problems in lab exams (accidental deletions) Use existing Libraries with ease (Statistics and Computer) Prepare undergraduates.
Carl’s Ultra-Basic Guide to the Command Line and Git Carl G. Stahmer Director of Digital Scholarship cstahmer UD Davis Data Science.
Installing git In Linux: sudo apt-get install git In Windows: download it from run the setuphttp://git-scm.com/download/win.
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
Git workflows: using multiple branches for parallel development SE-2800 Dr. Mark L. Hornick 1.
Git A distributed version control system Powerpoint credited to University of PA And modified by Pepper 28-Jun-16.
GIT Version control. Version Control Sharing code via a centralized DB Also provides for Backtracking (going back to a previous version of code), Branching.
Version Control Systems
CompSci 230 Software Construction
CS5220 Advanced Topics in Web Programming Version Control with Git
Introduction to GitHub
M.Sc. Juan Carlos Olivares Rojas
Source Control Systems
Concurrent Versions System User guide for CS408
CVS – concurrent versions system
11 Version control (part 2)
CReSIS Git Tutorial.
LECTURE 2: Software Configuration Management
Version Control.
Git Practice walkthrough.
Keeping track of all the copies of your files
Discussion 11 Final Project / Git.
Sign in on the attendance sheet!
Version Control overview
USER MANUAL Distributor Portal.
Git branches and remotes
Software Engineering for Data Scientists
CMRTA Website Handbook:.
Version Control with Git and GitHub
Macaualy2 Workshop Berkeley 2017
Version Control Systems
Storing, Sending, and Tracking Files Recitation 2
Mercurial & TorToise-HG
Version Control with Git accelerated tutorial for busy academics
Akshay Narayan git up to speed with RCS Akshay Narayan
LECTURE 3: Software Configuration Management
The Big Picture
SIG: Open Week 1: GitHub Tim Choh.
CMRTA Website Handbook:.
User Guide Subversion client TortoiseSVN
JavaTeaching and Importing a github repository
Trainings 11/18 Advanced Java Things.
Using Github.
Version Control System - Git
GitHub 101 Using Github and Git for Source Control
Git Introduction.
Git GitHub.
Introduction to The Git Version Control System
Using GitHub for Papyrus Models Jessie Jewitt – OAM Technology Consulting/ ARM Inc. January 29th, 2018.
Presentation transcript:

ALICE-Juniors Meeting 4 December 2017 Basics of Git and ALICE Software Shyam Kumar [Junior Representative of ALICE-India Group] Department of Physics, IIT Bombay, Mumbai Email: shyam055119@gmail.com 4/12/2017

Outline Why Git ? Git from Commands and Manual Committing the code (Manual) Basics of ALICE Software Adding Class in ALIROOT Summary 4/12/2017

Why Git ? Google Drive Git Repository Uploading a file and replacing No history of files very hard to find changes Complete history of files PMD Not Good for cases When many Peoples are working on common Project Very helpful When many Peoples are working on common Project Example 4/12/2017

My Latest committed class Red (-ve ) : Removed lines Green (+ve ): Added lines Git Repository (Good Job) 4/12/2017

Git from Commands and Manual Your Git use name Login here and Fork git clone path git clone https://...... (It will download and extract both) [Command line] Download Zip: Tar file then just extract [Manual] 4/12/2017

After Login 4/12/2017

Cloning Check the status always Download changes Added a file Lecture…. In PhD work but not in repository Added a file Lecture…. 4/12/2017

After adding tried to commit Configure username and mail id Push the changes on repository User name : Simple-Shyam Next line is password enter this will push the changes 4/12/2017

Previous Steps 4/12/2017

Done changes in isto.c in my desktop not in repository (Some time you modified aliroot class) Do un-changes in code 4/12/2017

Difference between git pull and git pull --rebase Git Commands git log –oneline : History later enter q for quit git branch : It will show the branch on which you are git log –online –all --decorate :this will show all branch with commits git pull git pull –rebase git checkout master Difference between git pull and git pull --rebase 4/12/2017

4/12/2017

Manually committing (No commands) Upload file 4/12/2017

Upload files as we do normally Put the message in this line related to file Click on commit changes (Very simple) done !!!!! 4/12/2017

You can also look at the history Delete a file if wrongly committed (Edit of delete) 4/12/2017

For deleting again require commit changes put messages 4/12/2017

Adding a directory 4/12/2017

Created directory now you can upload files 4/12/2017

Committing the code (Manual) Forked repository Instruction for commit http://alisw.github.io/git-tutorial/ 4/12/2017

Forked repository 4/12/2017

After uploading your code just make pull request convener will approve then It will be in AliRoot/AliPhysics [ I have always done like this] 4/12/2017

Conflict came: Click on resolve conflicts (solved my case) 4/12/2017

Basics of ALICE Software Go into the AliRoot directory, and do: git fetch --all git reset --hard v5-09-20 You can proceed with aliBuild normally. 4/12/2017

Always check git status Update AliPhysics Always check git status It will tell if some files are modified, It can create problem in building 4/12/2017

Finally run the command below in the specified directory and follow instruction 4/12/2017

You can build on this path also [AliRoot] What Exactly make do ???? 4/12/2017

Every directory will contain a CMakeLists Every directory will contain a CMakeLists.txt in any framework ALICE/CMS/ ATLAS/PANDA….. 4/12/2017

You can build on this path also [AliPhysics] How #include “example.h” works in classes we never give the path? ?? example.h can be anywhere. 4/12/2017

How the code knows where is this class? Every directory will contain a LinkDef.h in any framework ALICE/CMS/ ATLAS/PANDA….. [It also included in Cmake file, This do the dynamic linking of libraries during compilation 4/12/2017

Adding Class in ALIROOT 4/12/2017

You can build also specified directory [correlationHF] 4/12/2017

Summary Play with Git commands as much as you can on your local repository !!!!! Try Other git commands on your repository given in link below https://confluence.atlassian.com/bitbucketserver/basic-git-commands-776639767.html Thank You 4/12/2017