GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mahendra-shinde/lti-aug-2020: LTI DevOps Aug 2020

BranchesTags
Open more actions menu

Latest commit

 

History

13 Commits
13 Commits

Folders and files

NameName
Last commit message
Last commit date
jenkins-jobs
jenkins-jobs
 
 
tomcat-deployment
tomcat-deployment
 
 
visualizations
visualizations
 
 
agenda.md
agenda.md
 
 
apache-maven.md
apache-maven.md
 
 
branching.md
branching.md
 
 
demo-1.md
demo-1.md
 
 
devops1.md
devops1.md
 
 
devops2.md
devops2.md
 
 
eclipse-git.md
eclipse-git.md
 
 
local-first.md
local-first.md
 
 
maven-demo1.md
maven-demo1.md
 
 
maven-demo2.md
maven-demo2.md
 
 
maven-multi-module-project.md
maven-multi-module-project.md
 
 
maven-selenium.md
maven-selenium.md
 
 
readme.md
readme.md
 
 
remote-first.md
remote-first.md
 
 

Repository files navigation

Initial Git Setup

  • Git is Distributed Version control
  • Git is ideal source control for Smaller repositories
  • Git is ideal source control for Source code files, but not so for binary files
  • Git (default settings) DO NOT ALLOW files bigger than 100 MB
  • For files bigger than 100 MB, use git-lfs (Large file support)
  1. Install GIT for Windows using https://git-scm.com/download/win

  2. Signup on https://github.com / Use existing account

  3. One time Git setup for Local system. type following commands on "CMD" or "Powershell" or "Git Bash"

    ## GitHub Account name as Username
    $ git config --global user.name "Mahendra Shinde"
    ## GitHub Login ID as Email
    $ git config --global user.email "[email protected]"
    $ git config --global -l
    
  4. Test create local GIT repository (Using CMD)

    $ cd \
    $ mkdir repos
    $ cd repos
    $ git init myrepo01
    $ cd myrepos01
    $ explorer .
    
  5. Add first ROOT-COMMIT

    $ cd \repos\myrepo01\
    $ start notepad file1.txt
    ## Once notepad opens, press "Yes" or "OK" to create new file
    ## Save the changes and close notepad
    $ git status
    ### Start TRACKING the changes to files
    $ git add file1.txt
    $ git status
    ### After adding several files/changes using GIT ADD
    $ git commit -m "First Commit"
    $ git status
    $ git log
    

git add Add single file to INDEX git add * Add all files from CURRENT PATH to INDEX git add . Add all files from THIS DIRECTORY and ALL SUB-DIRECTORIES to INDEX

Time travel (Go back to previous COMMIT and come back to present)

  1. Create new set of files in myrepo01

    $ cd \repos\myrepo01
    $ start notepad .gitignore
    Add following lines
    #### Ignore all CSS files
    *.css
    Save and close notepad
    $ start notepad style.css
    Add following lines:
    ---    
    h1 {
    color: red;
    }
    ---
    Save and close notepad
    $ start notepad index.html
    Add following lines
    ---
    <html>
    
    <body>
    <h1>Hello World</h1>
    </body>
    </html>
    ---
    Save and close notepad
    $ git add .
    $ git status
    $ git commit -m "Added a webpage"
    $ git log 
    Copy the FIRST FOUR digits of First commit-ID
    $ git checkout <PASTE-COMMIT-ID>
    $ dir 
    $ git checkout master 
    

About

LTI DevOps Aug 2020

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

3 forks
Report repository

Releases

Packages

Used by

Contributors

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.