akil@Zhast MINGW64 ~
$ mkdir GitExp/
akil@Zhast MINGW64 ~
$ cd mkdir
bash: cd: mkdir: No such file or directory
akil@Zhast MINGW64 ~
$ cd GitExp/
akil@Zhast MINGW64 ~/GitExp
$ git init
Initialized empty Git repository in C:/Users/varma/GitExp/.git/
akil@Zhast MINGW64 ~/GitExp (master)
$ touch hello.txt
akil@Zhast MINGW64 ~/GitExp (master)
$ ls
hello.txt
akil@Zhast MINGW64 ~/GitExp (master)
$ git add hello.txt
akil@Zhast MINGW64 ~/GitExp (master)
$ git commit -m "First file"
[master (root-commit) e7e509e] First file
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 hello.txt
akil@Zhast MINGW64 ~/GitExp (master)
$ git status
On branch master
nothing to commit, working tree clean
akil@Zhast MINGW64 ~/GitExp (master)
$ git log
commit e7e509e5afe149198cbf8853aa6a7d73f2e2b1bd (HEAD -> master)
Author: HAcker-1unoff-off <
[email protected]>
Date: Wed May 28 19:02:51 2025 +0530
First file
akil@Zhast MINGW64 ~/GitExp (master)
$ git diff
diff --git a/hello.txt b/hello.txt
index e69de29..b6fc4c6 100644
--- a/hello.txt
+++ b/hello.txt
@@ -0,0 +1 @@
+hello
\ No newline at end of file
akil@Zhast MINGW64 ~/GitExp (master)
$ git log
commit e7e509e5afe149198cbf8853aa6a7d73f2e2b1bd (HEAD -> master)
Author: HAcker-1unoff-off <
[email protected]>
Date: Wed May 28 19:02:51 2025 +0530
First file
akil@Zhast MINGW64 ~/GitExp (master)
$ git show e7e509e5afe149198cbf8853aa6a7d73f2e2b1bd
commit e7e509e5afe149198cbf8853aa6a7d73f2e2b1bd (HEAD -> master)
Author: HAcker-1unoff-off <
[email protected]>
Date: Wed May 28 19:02:51 2025 +0530
First file
diff --git a/hello.txt b/hello.txt
new file mode 100644
index 0000000..e69de29
akil@Zhast MINGW64 ~/GitExp (master)
$ git remote add origin https://github.com/HAcker-1unoff-off/GitExp.git
akil@Zhast MINGW64 ~/GitExp (master)
$ git branch -M main
akil@Zhast MINGW64 ~/GitExp (main)
$ git push -u origin main
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Writing objects: 100% (3/3), 221 bytes | 221.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/HAcker-1unoff-off/GitExp.git
* [new branch] main -> main
branch 'main' set up to track 'origin/main'.
akil@Zhast MINGW64 ~/GitExp (main)
$ ls
hello.txt
akil@Zhast MINGW64 ~/GitExp (main)
$ git pull origin main
remote: Enumerating objects: 4, done.
remote: Counting objects: 100% (4/4), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (3/3), 952 bytes | 105.00 KiB/s, done.
From https://github.com/HAcker-1unoff-off/GitExp
* branch main -> FETCH_HEAD
e7e509e..016db47 main -> origin/main
Updating e7e509e..016db47
Fast-forward
Next file | 1 +
1 file changed, 1 insertion(+)
create mode 100644 Next file
akil@Zhast MINGW64 ~/GitExp (main)
$ ls
'Next file' hello.txt
akil@Zhast MINGW64 ~/GitExp (main)
$ git clone https://github.com/HAcker-1unoff-off/GitExp.git
Cloning into 'GitExp'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (3/3), done.
remote: Total 6 (delta 0), reused 3 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (6/6), done.
akil@Zhast MINGW64 ~/GitExp (main)
$ git remote -v
origin https://github.com/HAcker-1unoff-off/GitExp.git (fetch)
origin https://github.com/HAcker-1unoff-off/GitExp.git (push)
akil@Zhast MINGW64 ~/GitExp (main)
$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: hello.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
GitExp/
no changes added to commit (use "git add" and/or "git commit -a")
akil@Zhast MINGW64 ~/GitExp (main)
$ git log --oneline
016db47 (HEAD -> main, origin/main) Create Next file
e7e509e First file
akil@Zhast MINGW64 ~/GitExp (main)
$ git branch
* main
akil@Zhast MINGW64 ~/GitExp (main)
$ git branch feature-login
akil@Zhast MINGW64 ~/GitExp (main)
$ git switch feature-login
M hello.txt
Switched to branch 'feature-login'
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git checkout -b feature-logout
Switched to a new branch 'feature-logout'
akil@Zhast MINGW64 ~/GitExp (feature-logout)
$ git switch feature-login
M hello.txt
Switched to branch 'feature-login'
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git branch -d feature-logout
Deleted branch feature-logout (was 016db47).
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git switch main
M hello.txt
Switched to branch 'main'
Your branch is up to date with 'origin/main'.
akil@Zhast MINGW64 ~/GitExp (main)
$ git merge feature-login
Already up to date.
akil@Zhast MINGW64 ~/GitExp (main)
$ git push -u origin feature-login
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
remote:
remote: Create a pull request for 'feature-login' on GitHub by visiting:
remote: https://github.com/HAcker-1unoff-off/GitExp/pull/new/feature-login
remote:
To https://github.com/HAcker-1unoff-off/GitExp.git
* [new branch] feature-login -> feature-login
branch 'feature-login' set up to track 'origin/feature-login'.
akil@Zhast MINGW64 ~/GitExp (main)
$ git switch feature-login
M hello.txt
Switched to branch 'feature-login'
Your branch is up to date with 'origin/feature-login'.
akil@Zhast MINGW64 ~/GitExp (main)
$ git add hello.txt
akil@Zhast MINGW64 ~/GitExp (main)
$ git commit -m "Second upd"
[main 8a5f3fe] Second upd
2 files changed, 2 insertions(+)
create mode 160000 GitExp
akil@Zhast MINGW64 ~/GitExp (main)
$ git switch feature-login
warning: unable to rmdir 'GitExp': Directory not empty
Switched to branch 'feature-login'
Your branch is up to date with 'origin/feature-login'.
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git rebase main
Successfully rebased and updated refs/heads/feature-login.
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git stash -a
warning: in the working copy of 'trail.txt', LF will be replaced by CRLF the next time Git touches
it
warning: in the working copy of 'trial.txt', LF will be replaced by CRLF the next time Git touches
it
Saved working directory and index state WIP on feature-login: 8a5f3fe Second upd
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git checkout main
Switched to branch 'main'
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
akil@Zhast MINGW64 ~/GitExp (main)
$ git switch feature-login
Switched to branch 'feature-login'
Your branch is ahead of 'origin/feature-login' by 1 commit.
(use "git push" to publish your local commits)
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git stash pop
Already up to date.
On branch feature-login
Your branch is ahead of 'origin/feature-login' by 1 commit.
(use "git push" to publish your local commits)
Untracked files:
(use "git add <file>..." to include in what will be committed)
hi.py
trail.txt
trial.txt
nothing added to commit but untracked files present (use "git add" to track)
Dropped refs/stash@{0} (11b915586f8d584b6ac586b0fe85f8278396ed52)
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git push origin feature-login
Enumerating objects: 5, done.
Counting objects: 100% (5/5), done.
Delta compression using up to 20 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 322 bytes | 322.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To https://github.com/HAcker-1unoff-off/GitExp.git
016db47..8a5f3fe feature-login -> feature-login
akil@Zhast MINGW64 ~/GitExp (feature-login)
$ git switch main
Switched to branch 'main'
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
akil@Zhast MINGW64 ~/GitExp (main)
$ git branch -d feature-login
Deleted branch feature-login (was 8a5f3fe).
akil@Zhast MINGW64 ~/GitExp (main)
$ git push origin --delete feature-login
To https://github.com/HAcker-1unoff-off/GitExp.git
- [deleted] feature-login
akil@Zhast MINGW64 ~/GitExp (main)
$ git pull origin main
remote: Enumerating objects: 1, done.
remote: Counting objects: 100% (1/1), done.
remote: Total 1 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
Unpacking objects: 100% (1/1), 903 bytes | 225.00 KiB/s, done.
From https://github.com/HAcker-1unoff-off/GitExp
* branch main -> FETCH_HEAD
016db47..e6271d9 main -> origin/main
Updating 8a5f3fe..e6271d9
Fast-forward
akil@Zhast MINGW64 ~/GitExp (main)
$ touch one.txt
akil@Zhast MINGW64 ~/GitExp (main)
$ git stash
No local changes to save
akil@Zhast MINGW64 ~/GitExp (main)
$ git add one.txt
akil@Zhast MINGW64 ~/GitExp (main)
$ git stash
Saved working directory and index state WIP on main: e6271d9 Merge pull request #1 from
HAcker-1unoff-off/feature-login
akil@Zhast MINGW64 ~/GitExp (main)
$ git stash list
stash@{0}: WIP on main: e6271d9 Merge pull request #1 from HAcker-1unoff-off/feature-login
akil@Zhast MINGW64 ~/GitExp (main)
$ git stash apply
On branch main
Your branch is up to date with 'origin/main'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
new file: one.txt
Untracked files:
(use "git add <file>..." to include in what will be committed)
hi.py
trail.txt
trial.txt
git log --oneline -n 5
e6271d9 (HEAD -> main, origin/main, origin/HEAD) Merge pull request #1 from HAcker-1unoff-
off/feature-login
8a5f3fe Second upd
016db47 Create Next file
e7e509e First file
akil@Zhast MINGW64 ~/GitExp (main|CHERRY-PICKING)
$ git cherry-pick e7e509e
Auto-merging hello.txt
On branch main
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
You are currently cherry-picking commit e7e509e.
(all conflicts fixed: run "git cherry-pick --continue")
(use "git cherry-pick --skip" to skip this patch)
(use "git cherry-pick --abort" to cancel the cherry-pick operation)
Untracked files:
(use "git add <file>..." to include in what will be committed)
hi.py
trail.txt
trial.txt
nothing added to commit but untracked files present (use "git add" to track)
The previous cherry-pick is now empty, possibly due to conflict resolution.
If you wish to commit it anyway, use:
git commit --allow-empty
Otherwise, please use 'git cherry-pick --skip'
git log --author="HAcker-1unoff-off" --since="2025-04-01" --until="2025-05-28" --date=short
commit d502729dea3947c4bbbe09668ba7790de9e37bb1 (HEAD -> main)
Author: HAcker-1unoff-off <
[email protected]>
Date: 2025-05-28
third upd
commit e6271d92692cadf68072b6b438c3f8fdc9d4b728 (origin/main, origin/HEAD)
Merge: 016db47 8a5f3fe
Author: HAcker-1unoff-off <
[email protected]>
Date: 2025-05-28
Merge pull request #1 from HAcker-1unoff-off/feature-login
Second upd
commit 8a5f3fed6e203b424ea61399033fb962bb58847c
Author: HAcker-1unoff-off <[email protected]>
Date: 2025-05-28
Second upd
commit 016db47979ae016967c5746ccdb172470c75d133
Author: HAcker-1unoff-off <[email protected]>
Date: 2025-05-28
Create Next file
commit e7e509e5afe149198cbf8853aa6a7d73f2e2b1bd
Author: HAcker-1unoff-off <[email protected]>
Date: 2025-05-28
First file