Assignment-Git
Assignment-Git
$ cd "D:\harish\Learning\DevOps\sample-project"
$ git init .
$ git status
On branch master
No commits yet
Untracked files:
css/
fonts/
img/
index.html
nothing added to commit but untracked files present (use "git add" to track)
$ 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
$ git branch
* master
$ touch sample.txt
$ cat sample.txt
This is new feature
$ git status
On branch new-feature
Untracked files:
sample.txt
nothing added to commit but untracked files present (use "git add" to track)
$ git add .
warning: in the working copy of 'sample.txt', LF will be replaced by CRLF the next time Git touches it
$ git branch
* master
new-feature
haris@Harish MINGW64 /d/harish/Learning/DevOps/sample-project (master)
Updating e27b50d..c0db83c
Fast-forward
sample.txt | 1 +
$ ls -lrt
total 5
remote:
remote: https://github.com/harishkumarr/repo2/pull/new/master
remote:
To https://github.com/harishkumarr/repo2