shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git checkout -b newBranch
Switched to a new branch 'newBranch'
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git stetus
git: 'stetus' is not a git command. See 'git --help'.
The most similar command is
status
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git status
On branch newBranch
Changes not staged for commit:
(use "git add/rm ..." to update what will be committed)
(use "git restore ..." to discard changes in working directory)
deleted: .gitignore
deleted: arr.html
deleted: note.js
deleted: noteApp.html
deleted: noteApp.js
deleted: synchrom.html
deleted: this.txt.txt
Untracked files:
(use "git add ..." to include in what will be committed)
html/
js/
txt/
no changes added to commit (use "git add" and/or "git commit -a")
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git add .
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git status
On branch newBranch
Changes to be committed:
(use "git restore --staged ..." to unstage)
renamed: arr.html -> html/arr.html
renamed: noteApp.html -> html/noteApp.html
renamed: synchrom.html -> html/synchrom.html
renamed: note.js -> js/note.js
renamed: noteApp.js -> js/noteApp.js
renamed: .gitignore -> txt/.gitignore
renamed: this.txt.txt -> txt/this.txt.txt
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git commit -m "move for newBranch"
[newBranch 3251821] move for newBranch
7 files changed, 0 insertions(+), 0 deletions(-)
rename arr.html => html/arr.html (100%)
rename noteApp.html => html/noteApp.html (100%)
rename synchrom.html => html/synchrom.html (100%)
rename note.js => js/note.js (100%)
rename noteApp.js => js/noteApp.js (100%)
rename .gitignore => txt/.gitignore (100%)
rename this.txt.txt => txt/this.txt.txt (100%)
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git status
On branch newBranch
nothing to commit, working tree clean
shrey@Shreyash MINGW64 /f/gittutorial (newBranch)
$ git checkout master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
shrey@Shreyash MINGW64 /f/gittutorial (master)
$ git checkout newBranch
Switched to branch 'newBranch'
Post a Comment