Direct Style Effect Systems -The Print[A] Example- A Comprehension Aid
Git as version control for Analytics project
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 | 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 | 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 | 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
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 | P a g e
CREATE YOUR SAMPLE PROJECT
SCREEN PRINTS DIPICTING THE STEPS
8. 8 | P a g e
OPTIONAL SCREENS (CAUTION -> DO NOT CREATE REPOSITORY IN ECLIPSE WORKSPACE)
9. 9 | P a g e
RECOMMENDED SCREENS (CREATE REPOSITORY I N A LOCAL GIT REPOSI TORY FOLDER)