Tuesday, 27 August 2019

Basic Git workflow(add,commit,pull & push) by Raj Gupta


Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ ls
Amazon-Web-Services-AWS-Cloud-Engineer/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects
$ cd Amazon-Web-Services-AWS-Cloud-Engineer/

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ ls
'How to choose an AMI by Root Device Type'            'How to Install phpMyAdmin on LAMP server'                        'How to Secure the LAMP Server Database'
'How to host a WordPress Blog with in Amazon Linux'   'How to resolve InstanceLimitExceeded error of EC2 server'         README.md
'How to Install a LAMP Web Server on Amazon Linux 2'  'How to retrieve the System Logs of our EC2 Server by Raj Gupta'

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (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/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ vi raj.txt

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ ls
'How to choose an AMI by Root Device Type'            'How to Install phpMyAdmin on LAMP server'                        'How to Secure the LAMP Server Database'
'How to host a WordPress Blog with in Amazon Linux'   'How to resolve InstanceLimitExceeded error of EC2 server'         raj.txt
'How to Install a LAMP Web Server on Amazon Linux 2'  'How to retrieve the System Logs of our EC2 Server by Raj Gupta'   README.md

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (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)
        raj.txt

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

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ git add raj.txt

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (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:   raj.txt


Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ git commit -m raj.txt
[master e98096a] raj.txt
 1 file changed, 1 insertion(+)
 create mode 100644 raj.txt

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)

nothing to commit, working tree clean

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ git pull origin master
From https://github.com/rajkumargupta14/Amazon-Web-Services-AWS-Cloud-Engineer
 * branch            master     -> FETCH_HEAD
Already up to date.

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (master)
$ git push origin master
Enumerating objects: 4, done.
Counting objects: 100% (4/4), done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 275 bytes | 137.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/Amazon-Web-Services-AWS-Cloud-Engineer.git
   3ea9d7d..e98096a  master -> master

Administrator@EC2AMAZ-H8K4U2K MINGW64 ~/projects/Amazon-Web-Services-AWS-Cloud-Engineer (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