Tuesday, 27 August 2019

Adding Git to an existing project by Raj Gupta

Suppose we have already project initializr-verekia-4.0.zip or any other project and we want to add Git to it

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ unzip ~/Downloads/initializr-verekia-4.0.zip
Archive:  /c/Users/Administrator/Downloads/initializr-verekia-4.0.zip
  inflating: initializr/index.html
  inflating: initializr/css/main.css
  inflating: initializr/css/bootstrap-theme.css
  inflating: initializr/css/bootstrap-theme.min.css
  inflating: initializr/css/bootstrap.css
  inflating: initializr/css/bootstrap.min.css
  inflating: initializr/css/bootstrap.css.map
  inflating: initializr/css/bootstrap-theme.css.map
  inflating: initializr/fonts/glyphicons-halflings-regular.eot
  inflating: initializr/fonts/glyphicons-halflings-regular.svg
  inflating: initializr/fonts/glyphicons-halflings-regular.ttf
  inflating: initializr/fonts/glyphicons-halflings-regular.woff
  inflating: initializr/js/vendor/bootstrap.js
  inflating: initializr/js/vendor/bootstrap.min.js
  inflating: initializr/js/vendor/npm.js
  inflating: initializr/robots.txt
  inflating: initializr/js/main.js
  inflating: initializr/js/plugins.js
  inflating: initializr/crossdomain.xml
  inflating: initializr/js/vendor/modernizr-2.8.3-respond-1.4.2.min.js
  inflating: initializr/.htaccess
  inflating: initializr/apple-touch-icon.png
  inflating: initializr/browserconfig.xml
  inflating: initializr/tile-wide.png
  inflating: initializr/tile.png
  inflating: initializr/js/vendor/jquery-1.11.2.min.js
  inflating: initializr/404.html
  inflating: initializr/favicon.ico
  inflating: initializr/humans.txt
   creating: initializr/img/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ ls
 initializr/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ mv initializr/ web-project

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ ls
web-project/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ cd web-project/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project
$ ls
404.html  apple-touch-icon.png  browserconfig.xml  crossdomain.xml  css/  favicon.ico  fonts/  humans.txt  img/  index.html  js/  robots.txt  tile.png  tile-wide.png

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project
$ git init
Initialized empty Git repository in C:/Users/Administrator/projects/web-project/.git/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project (master)
$ ls -al
total 91
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:20 ./
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:19 ../
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:20 .git/
-rw-r--r-- 1 Administrator 197121 39014 Aug 27 08:17 .htaccess
-rw-r--r-- 1 Administrator 197121  1272 Aug 27 08:17 404.html
-rw-r--r-- 1 Administrator 197121  3959 Aug 27 08:17 apple-touch-icon.png
-rw-r--r-- 1 Administrator 197121   416 Aug 27 08:17 browserconfig.xml
-rw-r--r-- 1 Administrator 197121   603 Aug 27 08:17 crossdomain.xml
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:18 css/
-rw-r--r-- 1 Administrator 197121   766 Aug 27 08:17 favicon.ico
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:18 fonts/
-rw-r--r-- 1 Administrator 197121   191 Aug 27 08:17 humans.txt
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:17 img/
-rw-r--r-- 1 Administrator 197121  5329 Aug 27 08:17 index.html
drwxr-xr-x 1 Administrator 197121     0 Aug 27 08:18 js/
-rw-r--r-- 1 Administrator 197121    78 Aug 27 08:17 robots.txt
-rw-r--r-- 1 Administrator 197121  3482 Aug 27 08:17 tile.png
-rw-r--r-- 1 Administrator 197121  1854 Aug 27 08:17 tile-wide.png

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project (master)
$ git status
On branch master

No commits yet

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        .htaccess
        404.html
        apple-touch-icon.png
        browserconfig.xml
        crossdomain.xml
        css/
        favicon.ico
        fonts/
        humans.txt
        index.html
        js/
        robots.txt
        tile-wide.png
        tile.png

nothing added to commit but untracked files present (use "git add" to track)

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project (master)
$ git add .

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project (master)
$ git status
On branch master

No commits yet

Changes to be committed:
  (use "git rm --cached <file>..." to unstage)
        new file:   .htaccess
        new file:   404.html
        new file:   apple-touch-icon.png
        new file:   browserconfig.xml
        new file:   crossdomain.xml
        new file:   css/bootstrap-theme.css
        new file:   css/bootstrap-theme.css.map
        new file:   css/bootstrap-theme.min.css
        new file:   css/bootstrap.css
        new file:   css/bootstrap.css.map
        new file:   css/bootstrap.min.css
        new file:   css/main.css
        new file:   favicon.ico
        new file:   fonts/glyphicons-halflings-regular.eot
        new file:   fonts/glyphicons-halflings-regular.svg
        new file:   fonts/glyphicons-halflings-regular.ttf
        new file:   fonts/glyphicons-halflings-regular.woff
        new file:   humans.txt
        new file:   index.html
        new file:   js/main.js
        new file:   js/plugins.js
        new file:   js/vendor/bootstrap.js
        new file:   js/vendor/bootstrap.min.js
        new file:   js/vendor/jquery-1.11.2.min.js
        new file:   js/vendor/modernizr-2.8.3-respond-1.4.2.min.js
        new file:   js/vendor/npm.js
        new file:   robots.txt
        new file:   tile-wide.png
        new file:   tile.png


Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project (master)
$ git commit -m "My first commit, inline"
[master (root-commit) 88a4cee] My first commit, inline
 29 files changed, 10594 insertions(+)
 create mode 100644 .htaccess
 create mode 100644 404.html
 create mode 100644 apple-touch-icon.png
 create mode 100644 browserconfig.xml
 create mode 100644 crossdomain.xml
 create mode 100644 css/bootstrap-theme.css
 create mode 100644 css/bootstrap-theme.css.map
 create mode 100644 css/bootstrap-theme.min.css
 create mode 100644 css/bootstrap.css
 create mode 100644 css/bootstrap.css.map
 create mode 100644 css/bootstrap.min.css
 create mode 100644 css/main.css
 create mode 100644 favicon.ico
 create mode 100644 fonts/glyphicons-halflings-regular.eot
 create mode 100644 fonts/glyphicons-halflings-regular.svg
 create mode 100644 fonts/glyphicons-halflings-regular.ttf
 create mode 100644 fonts/glyphicons-halflings-regular.woff
 create mode 100644 humans.txt
 create mode 100644 index.html
 create mode 100644 js/main.js
 create mode 100644 js/plugins.js
 create mode 100644 js/vendor/bootstrap.js
 create mode 100644 js/vendor/bootstrap.min.js
 create mode 100644 js/vendor/jquery-1.11.2.min.js
 create mode 100644 js/vendor/modernizr-2.8.3-respond-1.4.2.min.js
 create mode 100644 js/vendor/npm.js
 create mode 100644 robots.txt
 create mode 100644 tile-wide.png
 create mode 100644 tile.png

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/web-project (master)
$ git status
On branch master
nothing to commit, working tree clean

1 comment:

  1. Hello everyone , here’s your opportunity for you to achieve your dreams of being a multi million dollar rich through trading , I once loss all I got through trading but was fortunate to come across a woman with great virtue and selfless heart (Mary ) i was introduce to her masterclass strategy while searching online which has revived me of all my losses and made me gain more and more . With her unique strategy you are entitled to daily signals and instant withdraw ,be rest assured of getting a refund of all your loss investment with any platform that has denied you in one way or the other in getting your money . Mrs Mary masterclass strategy is simply the best for beginners and those that are finding it difficult to succeed through trading she’ll help you with just a simple step . Email her ( maryshea03 @ Gmail .com) WhatsApp +1 562 384 7738 . Remember this is absolutely free!!!

    ReplyDelete