Revert a Change
Revert is doing a commit
In action
D:\Work\git-prj (master)
λ echo import this > anotherfile.py
D:\Work\git-prj (master)
λ git status
On branch master
Untracked files:
(use "git add <file>..." to include in what will be committed)
anotherfile.py
nothing added to commit but untracked files present (use "git add" to track)
D:\Work\git-prj (master)
λ git add anotherfile.py
D:\Work\git-prj (master)
λ git commit -m "Added another file"
[master 35ac407] Added another file
1 file changed, 1 insertion(+)
create mode 100644 anotherfile.py
D:\Work\git-prj (master)
λ git log --oneline
35ac407 (HEAD -> master) Added another file
ee7ebbd Print out the std dev
b1e55d3 Print out the mean
c96c526 First commit
D:\Work\git-prj (master)
λ ls
anotherfile.py myfile.pyInformation is still there
Last updated