Tagged: git

Git Commands on Windows

Install Git on Windows

1. Download the latest Git for Windows stand-alone installer

2. Use the default options from Next and Finish.

3. Open Command Prompt

4. Configure Git username and email (be associated with any commits)

    Git global setup:

    C:\> git config --global user.name "Nag Arvind Gudiseva"
    C:\> git config --global user.email "nag.gudiseva@csscorp.com"

Git Command line instructions

    A. Create a new repository

    C:\> git clone https://gitlab.com/csscorpglobal/analytics-sample-project.git
    C:\> cd analytics-sample-project
    C:\> touch README.md
    C:\> git add README.md
    C:\> git commit -m "add README"
    C:\> git push -u origin master

B. Existing folder or Git repository

    C:\> cd existing_folder
    C:\> git init
    C:\> git remote add origin https://gitlab.com/csscorpglobal/analytics-sample-project.git
    C:\> git add .
    C:\> git commit
    C:\> git push -u origin master

C. In Linux

    $ git config --global http.proxy ""
    $ cd ~/gudiseva
    $ git init
    $ git status
    $ git add arvind.jpeg
    $ git commit -m “Add arvind.jpeg.”
    $ git remote add origin https://github.com/gudiseva/arvind.git
    $ git remote -v
    $ git remote status
    $ git remote diff
    $ git push

 

Jersey Multipart File Upload Maven Project

Create Maven Project with the below archetype (Jersey Version: 2.9; Jetty Version: 9.2.18.v20160721):

mvn archetype:generate -DarchetypeGroupId=org.glassfish.jersey.archetypes -DarchetypeArtifactId=jersey-quickstart-webapp -DarchetypeVersion=2.9