Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Git as version control for Analytics project

95 views

Published on

GitLab with Eclipse

Published in: Software
  • Be the first to comment

  • Be the first to like this

Git as version control for Analytics project

  1. 1. 1 | P a g e GIT AS VERSION CONTROL FOR ANALYTICS PROJECT (GITLAB) TABLE OF CONTENTS Open Source / Free..........................................................................................................................................................................................................2 Create Account (Invitation sent to individuals)..........................................................................................................................................................2 Install Git on Windows....................................................................................................................................................................................................3 Git for Windows stand-alone installer.....................................................................................................................................................................3 Command line instructions (Optional) [For Reference Only] ..................................................................................................................................3 Git global setup............................................................................................................................................................................................................3 Create a new repository.............................................................................................................................................................................................3 Existing folder or Git repository................................................................................................................................................................................4 Clone a Git Repository in Eclipse...................................................................................................................................................................................4 Window -> Perspective -> Open Perspective -> Other -> Git..............................................................................................................................4 Clone URI.......................................................................................................................................................................................................................4 Screen Prints Dipicting the Steps ..............................................................................................................................................................................5 Git Repository is available in Eclipse........................................................................................................................................................................6 Share an Existing or New Eclipse Project to Git Repository.....................................................................................................................................6 Window -> Perspective -> Open Perspective -> Other -> Java............................................................................................................................6 Create your sample project.......................................................................................................................................................................................7 Screen Prints Dipicting the Steps ..............................................................................................................................................................................7 Optional Screens (Caution -> Do Not Create Repository in Eclipse Workspace).........................................................................................8 Recommended Screens (Create Repository in A Local Git Repository Folder)............................................................................................9 Move the code to Staging Area...............................................................................................................................................................................12 Commit Code to Local Repository..........................................................................................................................................................................12 Quick Git Refresher........................................................................................................................................................................................................14 Setup a New Project in GitLab.....................................................................................................................................................................................15 New Project................................................................................................................................................................................................................15 Create Project.............................................................................................................................................................................................................15 Copy Repository URL.................................................................................................................................................................................................16
  2. 2. 2 | P a g e Push the Code from local repository to Git Repository..........................................................................................................................................16 Screens Prints (Showing the Navigation)..........................................................................................................................................................17 Verify the Project contents in Git Repository...........................................................................................................................................................20 OPEN SOURCE / FREE CREATE ACCOUNT (INVITATION SENT TO INDIVIDUALS)
  3. 3. 3 | P a g e INSTALL GIT ON WINDOWS GIT FOR WINDOWS STAND-ALONE INSTALLER Download the latest Git for Windows installer. https://git-for-windows.github.io/ When you've successfully started the installer, you should see the Git Setup wizard screen. Follow the Next and Finish prompts to complete the installation. The default options are pretty sensible for most users. Open a Command Prompt (or Git Bash if during installation you elected not to use Git from the Windows Command Prompt). Run the following commands to configure your Git username and email using the following commands, replacing Emma's name with your own. These details will be associated with any commits that you create: $ git config --global user.name "Emma Paris" $ git config --global user.email "eparis@atlassian.com" COMMAND LINE INSTRUCTIONS (OPTIONAL) [FOR REFERENCE ONLY] GIT GLOBAL SETUP git config --global user.name "Nag Arvind Gudiseva" git config --global user.email "nag.gudiseva@csscorp.com" CREATE A NEW REPOSITORY git clone https://gitlab.com/csscorpglobal/analytics-sample-project.git cd analytics-sample-project touch README.md git add README.md git commit -m "add README"
  4. 4. 4 | P a g e git push -u origin master EXISTING FOLDER OR GIT REPOSITORY cd existing_folder git init git remote add origin https://gitlab.com/csscorpglobal/analytics-sample-project.git git add . git commit git push -u origin master CLONE A GIT REPOSITORY IN ECLIPSE WINDOW -> PERSPECTIVE -> OPEN PERSPECTIVE -> OTHER -> GIT CLONE URI https://gitlab.com/csscorpglobal/analytics-sample-project.git
  5. 5. 5 | P a g e SCREEN PRINTS DIPICTING THE STEPS
  6. 6. 6 | P a g e GIT REPOSITORY IS AVAILABLE IN ECLIPSE SHARE AN EXISTING OR NEW ECLIPSE PROJECT TO GIT REPOSITORY WINDOW -> PERSPECTIVE -> OPEN PERSPECTIVE -> OTHER -> JAVA
  7. 7. 7 | P a g e CREATE YOUR SAMPLE PROJECT SCREEN PRINTS DIPICTING THE STEPS
  8. 8. 8 | P a g e OPTIONAL SCREENS (CAUTION -> DO NOT CREATE REPOSITORY IN ECLIPSE WORKSPACE)
  9. 9. 9 | P a g e RECOMMENDED SCREENS (CREATE REPOSITORY I N A LOCAL GIT REPOSI TORY FOLDER)
  10. 10. 10 | P a g e ADD PROJECT NAME
  11. 11. 11 | P a g e MARKERS GET PREPENDED TO THE PROJECT
  12. 12. 12 | P a g e MOVE THE CODE TO STAGING AREA COMMIT CODE TO LOCAL REPOSITORY
  13. 13. 13 | P a g e OR
  14. 14. 14 | P a g e QUICK GIT REFRESHER
  15. 15. 15 | P a g e SETUP A NEW PROJECT IN GITLAB NEW PROJECT CREATE PROJECT
  16. 16. 16 | P a g e COPY REPOSITORY URL PUSH THE CODE FROM LOCAL REPOSITORY TO GIT REPOSITORY
  17. 17. 17 | P a g e SCREENS PRINTS (SHOWING THE NAVIGATION)
  18. 18. 18 | P a g e
  19. 19. 19 | P a g e
  20. 20. 20 | P a g e VERIFY THE PROJECT CONTENTS IN GIT REPOSITORY NOTE: THE ABOVE STEPS ARE GENERAL AND APPLICABLE FOR ANY GIT REPOSITORY.

×