0% found this document useful (0 votes)
5 views3 pages

Devops Ex 1 52 4

The document details a series of Git commands executed by a user, including attempts to clone repositories, navigate directories, and manage commits. The user successfully cloned a repository from a different source after multiple failures with a specific repository. It also shows the user creating and switching branches, committing changes, and checking the status of the repository.

Uploaded by

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

Devops Ex 1 52 4

The document details a series of Git commands executed by a user, including attempts to clone repositories, navigate directories, and manage commits. The user successfully cloned a repository from a different source after multiple failures with a specific repository. It also shows the user creating and switching branches, committing changes, and checking the status of the repository.

Uploaded by

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

Student@WEBLAB-30 MINGW64 ~

$ git clone https://github.com/fosslab/test1.git hello-git-cloned


Cloning into 'hello-git-cloned'...
remote: Repository not found.
fatal: repository 'https://github.com/fosslab/test1.git/' not found

Student@WEBLAB-30 MINGW64 ~
$ cd hello-git-cloned
bash: cd: hello-git-cloned: No such file or directory

Student@WEBLAB-30 MINGW64 ~
$ git clone https://github.com/fosslab/test1.git hello-git-cloned
Cloning into 'hello-git-cloned'...
remote: Repository not found.
fatal: repository 'https://github.com/fosslab/test1.git/' not found

Student@WEBLAB-30 MINGW64 ~
$ cd "C:\Users\Student\JavaProgram"

Student@WEBLAB-30 MINGW64 ~/JavaProgram (master)


$ git clone https://github.com/fosslab/test1.git hello-git-cloned
Cloning into 'hello-git-cloned'...
remote: Repository not found.
fatal: repository 'https://github.com/fosslab/test1.git/' not found

Student@WEBLAB-30 MINGW64 ~/JavaProgram (master)


$ git clone https://github.com/Swetha05s/test hello
Cloning into 'hello'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 6 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (6/6), done.

Student@WEBLAB-30 MINGW64 ~/JavaProgram (master)


$ git clone https://github.com/fosslab/test1.git hello-git-cloned
Cloning into 'hello-git-cloned'...
remote: Repository not found.
fatal: repository 'https://github.com/fosslab/test1.git/' not found

Student@WEBLAB-30 MINGW64 ~/JavaProgram (master)


$ git clone https://github.com/Swetha05s/test.git SampleRepo
Cloning into 'SampleRepo'...
remote: Enumerating objects: 6, done.
remote: Counting objects: 100% (6/6), done.
remote: Compressing objects: 100% (5/5), done.
remote: Total 6 (delta 0), reused 6 (delta 0), pack-reused 0 (from 0)
Receiving objects: 100% (6/6), done.

Student@WEBLAB-30 MINGW64 ~/JavaProgram (master)


$ cd sample
bash: cd: sample: No such file or directory

Student@WEBLAB-30 MINGW64 ~/JavaProgram (master)


$ cd sampleRepo

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git status
On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git commit -m "message"
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ vi README.txt

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git init
Reinitialized existing Git repository in C:/Users/Student/JavaProgram/SampleRepo

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git add README.txt
warning: in the working copy of 'README.txt', LF will be replaced by CRLF the ne

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git commit -m "Commit 1"
[master a6a4b0f] Commit 1
1 file changed, 2 insertions(+)
create mode 100644 README.txt

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ vi README.txt

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git status
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)

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: README.txt

no changes added to commit (use "git add" and/or "git commit -a")

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git add README.txt
warning: in the working copy of 'README.txt', LF will be replaced by CRLF the ne

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git commit -m "Commit 2"
[master 9567533] Commit 2
1 file changed, 1 insertion(+)

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git log --oneline
9567533 (HEAD -> master) Commit 2
a6a4b0f Commit 1
ecb00d0 (origin/master, origin/HEAD) Second commit
19be734 First commit

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git branch level
Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)
$ git checkout level
Switched to branch 'level'

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (level)


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

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (level)


$ git commit -m "Commit 3"
On branch level
nothing to commit, working tree clean

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (level)


$ git checkout master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git status
On branch master
Your branch is ahead of 'origin/master' by 2 commits.
(use "git push" to publish your local commits)

nothing to commit, working tree clean

Student@WEBLAB-30 MINGW64 ~/JavaProgram/sampleRepo (master)


$ git log --oneline
9567533 (HEAD -> master, level) Commit 2
a6a4b0f Commit 1
ecb00d0 (origin/master, origin/HEAD) Second commit
19be734 First commit

You might also like