Friday, 23 August 2019

Git command by Raj Gupta



Administrator@EC2AMAZ-H8K4U2K MINGW64 ~
$ pwd
/c/Users/Administrator

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~
$ mkdir projects

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~
$ cd projects/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ pwd
/c/Users/Administrator/projects

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ git config --global user.name "Raj Gupta"

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ git config --global user.email "rajkumargupta14@gmail.com"

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ git config --global --list
user.name=Raj Gupta
user.email=rajkumargupta14@gmail.com

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ git clone https://github.com/rajkumargupta14/Raj2.git
Cloning into 'Raj2'...
warning: You appear to have cloned an empty repository.

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ git clone https://github.com/rajkumargupta14/hello-world.git
Cloning into 'hello-world'...
remote: Enumerating objects: 200, done.
remote: Total 200 (delta 0), reused 0 (delta 0), pack-reused 200
Receiving objects: 100% (200/200), 25.79 KiB | 628.00 KiB/s, done.
Resolving deltas: 100% (35/35), done.
Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ ls
hello-world/  Raj2/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ cd hello-world/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ ls
Dockerfile  pom.xml  README.md  server/  webapp/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ echo "This is Git Quick Start demo" >> start.txt

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ ls
Dockerfile  pom.xml  README.md  server/  start.txt  webapp/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ cat start.txt
This is Git Quick Start demo

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Untracked files:
  (use "git add <file>..." to include in what will be committed)
        start.txt

nothing added to commit but untracked files present (use "git add" to track)
Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ git add start.txt

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        new file:   start.txt


Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ git commit -m "Adding start test file"
[master 5e8e01d] Adding start test file
 1 file changed, 1 insertion(+)
 create mode 100644 start.txt


Now push it to github

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)
$ git push origin master   ---------------->>>>.It will ask user name and password of github
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 312 bytes | 156.00 KiB/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Resolving deltas: 100% (1/1), completed with 1 local object.
To https://github.com/rajkumargupta14/hello-world.git
   977ca2d..5e8e01d  master -> master

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/hello-world (master)


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