0% found this document useful (0 votes)
7 views2 pages

Git Demo

The document details a series of Git commands executed in a terminal, starting with initializing a new Git repository and creating several files. The user configures their identity, makes an initial commit, and sets up a remote repository on GitHub. Finally, the user pushes the commit to GitHub and performs a clone operation of the repository.

Uploaded by

Abhinav Kora
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)
7 views2 pages

Git Demo

The document details a series of Git commands executed in a terminal, starting with initializing a new Git repository and creating several files. The user configures their identity, makes an initial commit, and sets up a remote repository on GitHub. Finally, the user pushes the commit to GitHub and performs a clone operation of the repository.

Uploaded by

Abhinav Kora
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

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo

$ git status
fatal: not a git repository (or any of the parent directories): .git

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo


$ git init
Initialized empty Git repository in C:/Users/ADC/Desktop/BGMITGitDemo/.git/

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git status
On branch master

No commits yet

nothing to commit (create/copy files and use "git add" to track)

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ touch [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ touch [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ touch [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ touch [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git status
On branch master

No commits yet

Untracked files:
(use "git add <file>..." to include in what will be committed)
[Link]
[Link]
[Link]
[Link]

nothing added to commit but untracked files present (use "git add" to track)

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git add .

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git status
On branch master

No commits yet

Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: [Link]
new file: [Link]
new file: [Link]
new file: [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git commit -m "Initial commit - Added some files to the project"
Author identity unknown

*** Please tell me who you are.

Run

git config --global [Link] "you@[Link]"


git config --global [Link] "Your Name"

to set your account's default identity.


Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got 'ADC@DESKTOP-OGTE93A.(none)')

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git config --global [Link] "[Link]@[Link]"

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git config --global [Link] "AravindBijjaragi"

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git commit -m "Initial commit - Added some files to the project"
[master (root-commit) 9ea9427] Initial commit - Added some files to the project
4 files changed, 0 insertions(+), 0 deletions(-)
create mode 100644 [Link]
create mode 100644 [Link]
create mode 100644 [Link]
create mode 100644 [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git status
On branch master
nothing to commit, working tree clean

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git remote add origin [Link]

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git push -u origin master
info: please complete authentication in your browser...
Enumerating objects: 3, done.
Counting objects: 100% (3/3), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 270 bytes | 270.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0), pack-reused 0 (from 0)
To [Link]
* [new branch] master -> master
branch 'master' set up to track 'origin/master'.

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git log
commit 9ea9427e1b037a89d429260f3f26cbb1924ce420 (HEAD -> master, origin/master)
Author: AravindBijjaragi <[Link]@[Link]>
Date: Wed Feb 12 [Link] 2025 +0530

Initial commit - Added some files to the project

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git log --oneline
9ea9427 (HEAD -> master, origin/master) Initial commit - Added some files to the
project

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git pull
Already up to date.

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git fetch

ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)


$ git clone [Link]
Cloning into 'BGMIT-Git-Demo'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 3 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (3/3), done.
ADC@DESKTOP-OGTE93A MINGW64 ~/Desktop/BGMITGitDemo (master)
$

You might also like