0% found this document useful (0 votes)
17 views1 page

Git Practice

The document details a series of Git commands executed in a PowerShell environment. It shows the initialization of a new Git repository, the addition of files, and the first commit made to the repository. The final command displays the commit log, confirming the successful addition of two files.

Uploaded by

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

Git Practice

The document details a series of Git commands executed in a PowerShell environment. It shows the initialization of a new Git repository, the addition of files, and the first commit made to the repository. The final command displays the commit log, confirming the successful addition of two files.

Uploaded by

Atharva Kulkarni
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

PS C:\git practice> cd one

PS C:\git practice\one> git status


fatal: not a git repository (or any of the parent directories): .git
PS C:\git practice\one> git init
Initialized empty Git repository in C:/git practice/one/.git/
PS C:\git practice\one> ls -la
Get-ChildItem : A parameter cannot be found that
matches parameter name 'la'.
At line:1 char:4
+ ls -la
+ ~~~
+ CategoryInfo : InvalidArgument: (
:) [Get-ChildItem], ParameterBindingExceptio
n
+ FullyQualifiedErrorId : NamedParameterNotF
ound,[Link]
temCommand

PS C:\git practice\one> cd .git/


PS C:\git practice\one\.git> cd .
PS C:\git practice\one\.git> cd ..
PS C:\git practice\one> git add [Link]
PS C:\git practice\one> git status
On branch master

No commits yet

(use "git rm --cached <file>..." to unstage)


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

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

PS C:\git practice\one> git config --global [Link] "code --wait"


PS C:\git practice\one> git add [Link]
PS C:\git practice\one> 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]

PS C:\git practice\one> git commit


hint: Waiting for your editor to close the file...
[master (root-commit) 83a6579] Add content to file1 and file2
2 files changed, 2 insertions(+)
create mode 100644 [Link]
create mode 100644 [Link]
PS C:\git practice\one> git log --oneline
83a6579 (HEAD -> master) Add content to file1 and file2
PS C:\git practice\one>

You might also like