0% found this document useful (0 votes)
8 views6 pages

Ganesh

Gitt notes of

Uploaded by

ganeshrsmag2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views6 pages

Ganesh

Gitt notes of

Uploaded by

ganeshrsmag2005
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

-------------------------------------------------------------

program-9
-------------------------------------------------------------
git@ise:~$ cd 1MV23AI017

git@ise:~/1MV23AI017$ ls
exp3 exp6 Exp6 exp9 ganesh prog4 'prog 6'
git@ise:~/1MV23AI017$ cd exp3
git@ise:~/1MV23AI017/exp3$ ls
file1.txt
git@ise:~/1MV23AI017/exp3$ git log
commit 9aa4c0cc9d334b170445811d694ec4ab818e4340 (HEAD ->
master, targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully

commit b4011f5db6173719cdc0bf28903a36c0638a60da
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:45:55 2024 +0530

file checked and modified

commit ce473eb8f1f284ba0d46f21e2b080eb6bb4d4ede
(sourcebranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:41:43 2024 +0530

file 1 is created

git@ise:~/1MV23AI017/exp3$ gedit file2.txt


git@ise:~/1MV23AI017/exp3$ git add file2.txt
git@ise:~/1MV23AI017/exp3$ git commit -m "file 2 added"
[master 7125bea] file 2 added
1 file changed, 1 insertion(+)
create mode 100644 file2.txt

git@ise:~/1MV23AI017/exp3$ gedit file3.txt


git@ise:~/1MV23AI017/exp3$ git add file3.txt
git@ise:~/1MV23AI017/exp3$ git commit -m "file 3 is added"
[master 81b375f] file 3 is added
1 file changed, 2 insertions(+)
create mode 100644 file3.txt
git@ise:~/1MV23AI017/exp3$ git log
commit 81b375f8b21e46dcc8db8d52f464ee844b9d6b3b (HEAD ->
master)
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:05:05 2024 +0530
file 3 is added

commit 7125beade9f492c82df5661f2f898d523b81e7fe
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:03:12 2024 +0530

file 2 added

commit 9aa4c0cc9d334b170445811d694ec4ab818e4340
(targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully

commit b4011f5db6173719cdc0bf28903a36c0638a60da
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:45:55 2024 +0530

file checked and modified

commit ce473eb8f1f284ba0d46f21e2b080eb6bb4d4ede
(sourcebranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:41:43 2024 +0530

file 1 is created

git@ise:~/1MV23AI017/exp3$ git log --author="SHAMBHAVI" --


since="2024-09-20" --until="2024-09-25"
commit 9aa4c0cc9d334b170445811d694ec4ab818e4340
(targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully

commit b4011f5db6173719cdc0bf28903a36c0638a60da
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:45:55 2024 +0530

file checked and modified

commit ce473eb8f1f284ba0d46f21e2b080eb6bb4d4ede
(sourcebranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:41:43 2024 +0530
file 1 is created

git@ise:~/1MV23AI017/exp3$ git log -n 3 --pretty=format:"%h -


%an, %ar : %s"
81b375f - SHAMBHAVI, 18 minutes ago : file 3 is added
7125bea - SHAMBHAVI, 20 minutes ago : file 2 added
9aa4c0c - SHAMBHAVI, 2 months ago : file updated successfully

-------------------------------------------------------------
program-10
-------------------------------------------------------------

git@ise:~/1MV23AI017/exp3$ git log --author="SHAMBHAVI" --


since="2024-09-20" --until="2024-09-25"
commit 9aa4c0cc9d334b170445811d694ec4ab818e4340
(targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully

commit b4011f5db6173719cdc0bf28903a36c0638a60da
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:45:55 2024 +0530

file checked and modified

commit ce473eb8f1f284ba0d46f21e2b080eb6bb4d4ede
(sourcebranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:41:43 2024 +0530

file 1 is created

-------------------------------------------------------------
program-11
-------------------------------------------------------------

git@ise:~/1MV23AI017/exp3$ git log -n 3


commit 81b375f8b21e46dcc8db8d52f464ee844b9d6b3b (HEAD ->
master)
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:05:05 2024 +0530

file 3 is added

commit 7125beade9f492c82df5661f2f898d523b81e7fe
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:03:12 2024 +0530
file 2 added

commit 9aa4c0cc9d334b170445811d694ec4ab818e4340
(targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully


git@ise:~/1MV23AI017/exp3$ git log -n 3 --oneline
81b375f (HEAD -> master) file 3 is added
7125bea file 2 added
9aa4c0c (targetbranch) file updated successfully

program -12
-------------------------------------------------------------

git@ise:~/1MV23AI017/exp3$ git revert


81b375f8b21e46dcc8db8d52f464ee844b9d6b3b
Removing file3.txt
[master aed7e69] Revert "file 3 is added"
1 file changed, 2 deletions(-)
delete mode 100644 file3.txt
git@ise:~/1MV23AI017/exp3$ git log
commit aed7e6918fd91e547372c66254ba123f66cb9968 (HEAD ->
master)
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:37:27 2024 +0530
Revert "file 3 is added"

This reverts commit


81b375f8b21e46dcc8db8d52f464ee844b9d6b3b.

file 3 revert

commit 81b375f8b21e46dcc8db8d52f464ee844b9d6b3b
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:05:05 2024 +0530

file 3 is added

commit 7125beade9f492c82df5661f2f898d523b81e7fe
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:03:12 2024 +0530

file 2 added

commit 9aa4c0cc9d334b170445811d694ec4ab818e4340
(targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully

commit b4011f5db6173719cdc0bf28903a36c0638a60da
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:45:55 2024 +0530

file checked and modified

commit ce473eb8f1f284ba0d46f21e2b080eb6bb4d4ede
(sourcebranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:41:43 2024 +0530

file 1 is created
git@ise:~/1MV23AI017/exp3$ git reset --hard
81b375f8b21e46dcc8db8d52f464ee844b9d6b3b
HEAD is now at 81b375f file 3 is added
git@ise:~/1MV23AI017/exp3$ git log
commit 81b375f8b21e46dcc8db8d52f464ee844b9d6b3b (HEAD ->
master)
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:05:05 2024 +0530

file 3 is added
commit 7125beade9f492c82df5661f2f898d523b81e7fe
Author: SHAMBHAVI <[email protected]>
Date: Mon Dec 2 14:03:12 2024 +0530

file 2 added

commit 9aa4c0cc9d334b170445811d694ec4ab818e4340
(targetbranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:47:34 2024 +0530

file updated successfully

commit b4011f5db6173719cdc0bf28903a36c0638a60da
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:45:55 2024 +0530

file checked and modified

commit ce473eb8f1f284ba0d46f21e2b080eb6bb4d4ede
(sourcebranch)
Author: SHAMBHAVI <[email protected]>
Date: Mon Sep 23 14:41:43 2024 +0530

file 1 is created

You might also like