haris@Harish MINGW64 /c/WINDOWS/System32
$ cd "D:\harish\Learning\DevOps\sample-project"
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project
$ git init .
Initialized empty Git repository in D:/harish/Learning/DevOps/sample-project/.git/
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git status
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
css/
fonts/
img/
index.html
nothing added to commit but untracked files present (use "git add" to track)
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git add .
warning: in the working copy of 'css/site.css', LF will be replaced by CRLF the next time Git touches it
warning: in the working copy of 'index.html', LF will be replaced by CRLF the next time Git touches it
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git commit -m "initial commit"
[master (root-commit) e27b50d] initial commit
9 files changed, 198 insertions(+)
create mode 100644 css/site.css
create mode 100644 fonts/segoeuil.ttf
create mode 100644 img/cloneWhite.svg
create mode 100644 img/deployWhite.svg
create mode 100644 img/lightbulbWhite.svg
create mode 100644 img/stackWhite.svg
create mode 100644 img/successCloudNew.svg
create mode 100644 img/tweetThis.svg
create mode 100644 index.html
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git branch
* master
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git checkout -b new-feature
Switched to a new branch 'new-feature'
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ touch sample.txt
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ echo "This is new feature" > sample.txt
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ cat sample.txt
This is new feature
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ git status
On branch new-feature
Untracked files:
(use "git add <file>..." to include in what will be committed)
sample.txt
nothing added to commit but untracked files present (use "git add" to track)
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ git add .
warning: in the working copy of 'sample.txt', LF will be replaced by CRLF the next time Git touches it
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ git commit -m "Adding new feature"
[new-feature c0db83c] Adding new feature
1 file changed, 1 insertion(+)
create mode 100644 sample.txt
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (new-feature)
$ git checkout master
Switched to branch 'master'
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git branch
* master
new-feature
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git merge new-feature
Updating e27b50d..c0db83c
Fast-forward
sample.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 sample.txt
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ ls -lrt
total 5
-rw-r--r-- 1 haris 197609 2866 Nov 14 2017 index.html
drwxr-xr-x 1 haris 197609 0 Mar 2 22:23 css
drwxr-xr-x 1 haris 197609 0 Mar 2 22:23 fonts
drwxr-xr-x 1 haris 197609 0 Mar 2 22:23 img
-rw-r--r-- 1 haris 197609 21 Mar 2 22:25 sample.txt
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git remote add origin https://github.com/harishkumarr/repo2
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
$ git push origin master
Enumerating objects: 17, done.
Counting objects: 100% (17/17), done.
Delta compression using up to 12 threads
Compressing objects: 100% (14/14), done.
Writing objects: 100% (17/17), 460.66 KiB | 11.24 MiB/s, done.
Total 17 (delta 1), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (1/1), done.
remote:
remote: Create a pull request for 'master' on GitHub by visiting:
remote: https://github.com/harishkumarr/repo2/pull/new/master
remote:
To https://github.com/harishkumarr/repo2
* [new branch] master -> master
Moved to remote repository: