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

Git Commands

The document shows the setup and initialization of a Git repository for a tech CRUD project on a desktop. It initializes an empty Git repo, adds and commits initial project files, and pushes the master branch to a remote repository on GitHub.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
0% found this document useful (0 votes)
129 views6 pages

Git Commands

The document shows the setup and initialization of a Git repository for a tech CRUD project on a desktop. It initializes an empty Git repo, adds and commits initial project files, and pushes the master branch to a remote repository on GitHub.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1/ 6

Microsoft Windows [Version 10.0.17134.

706]

(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\MadaPas>d:

D:\>cd _documente

D:\_Documente>cd desktop

D:\_Documente\Desktop>dir

Volume in drive D has no label.

Volume Serial Number is 5A82-881E

Directory of D:\_Documente\Desktop

26.04.2019 11:15 <DIR> .

26.04.2019 11:15 <DIR> ..

05.04.2019 20:10 1.870 Ace Player.lnk

05.04.2019 20:10 1.974 Ace Stream Media Center.lnk

14.04.2019 14:35 48.422 Criminal.Minds.S04.DVDRip.XviD-SAiNTS.torrent

26.04.2019 11:01 <DIR> Dat18iSpring-master

26.04.2019 08:52 70.524 Dat18iSpring-master.zip

26.04.2019 10:52 <DIR> Dat18iSpringCrudTECH

05.10.2018 11:41 1.191 Dropbox.lnk

05.03.2019 16:48 2.326 GitHub Desktop.lnk

02.06.2018 19:44 2.206 Google Chrome.lnk

13.04.2019 21:24 13.200 Herba.docx

18.04.2019 23:06 <DIR> Kea Study

22.03.2019 12:02 2.442 MongoDB Compass Community.lnk

21.02.2019 10:07 2.236 MySQL Workbench 8.0 CE.lnk

13.04.2019 21:24 14.666 smart.docx

12.04.2019 19:17 966 SopCast.lnk

26.04.2019 11:12 <DIR> TECHcrudPR

26.04.2019 11:58 <DIR> techCRUDproject


27.11.2018 12:18 2.177 Visual Paradigm 15.2.lnk

22.03.2019 18:24 1.317 Visual Studio Code.lnk

11.09.2017 14:33 916 VLC media player.lnk

11.09.2017 16:27 897 µTorrent.lnk

16 File(s) 167.330 bytes

7 Dir(s) 75.701.755.904 bytes free

D:\_Documente\Desktop>cd techcrudproject

D:\_Documente\Desktop\techCRUDproject>dir

Volume in drive D has no label.

Volume Serial Number is 5A82-881E

Directory of D:\_Documente\Desktop\techCRUDproject

26.04.2019 11:58 <DIR> .

26.04.2019 11:58 <DIR> ..

26.04.2019 11:15 303 .gitignore

26.04.2019 13:40 <DIR> .idea

26.04.2019 11:15 <DIR> .mvn

26.04.2019 11:15 613 HELP.md

26.04.2019 11:15 9.114 mvnw

26.04.2019 11:15 5.811 mvnw.cmd

26.04.2019 11:52 1.781 pom.xml

26.04.2019 11:15 <DIR> src

26.04.2019 11:17 <DIR> target

26.04.2019 11:58 8.159 techCRUDproject.iml

6 File(s) 25.781 bytes

6 Dir(s) 75.701.755.904 bytes free

D:\_Documente\Desktop\techCRUDproject>git init

Initialized empty Git repository in D:/_Documente/Desktop/techCRUDproject/.git/

D:\_Documente\Desktop\techCRUDproject>git status
On branch master

No commits yet

Untracked files:

(use "git add <file>..." to include in what will be committed)

.gitignore

.mvn/

mvnw

mvnw.cmd

pom.xml

src/

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

D:\_Documente\Desktop\techCRUDproject>git .

git: '.' is not a git command. See 'git --help'.

The most similar commands are

am

gc

mv

p4

rm

D:\_Documente\Desktop\techCRUDproject>git add .

warning: LF will be replaced by CRLF in .gitignore.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in .mvn/wrapper/MavenWrapperDownloader.java.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in .mvn/wrapper/maven-wrapper.properties.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in mvnw.


The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in mvnw.cmd.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in pom.xml.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in src/main/java/com/exam/demo/TechCRUDprojectApplication.java.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in src/main/resources/application.properties.

The file will have its original line endings in your working directory

warning: LF will be replaced by CRLF in src/test/java/com/exam/demo/TechCruDprojectApplicationTests.java.

The file will have its original line endings in your working directory

D:\_Documente\Desktop\techCRUDproject>git status

On branch master

No commits yet

Changes to be committed:

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

new file: .gitignore

new file: .mvn/wrapper/MavenWrapperDownloader.java

new file: .mvn/wrapper/maven-wrapper.jar

new file: .mvn/wrapper/maven-wrapper.properties

new file: mvnw

new file: mvnw.cmd

new file: pom.xml

new file: src/main/java/HomeController.java

new file: src/main/java/Movie.java

new file: src/main/java/MovieController.java

new file: src/main/java/MovieRepository.java

new file: src/main/java/com/exam/demo/TechCRUDprojectApplication.java

new file: src/main/resources/application.properties

new file: src/main/resources/templates/add-movie.html


new file: src/main/resources/templates/edit-movie.html

new file: src/main/resources/templates/home.html

new file: src/main/resources/templates/show-movie.html

new file: src/test/java/com/exam/demo/TechCruDprojectApplicationTests.java

D:\_Documente\Desktop\techCRUDproject>git commit -m "Start of project"

[master (root-commit) c5e2710] Start of project

18 files changed, 1026 insertions(+)

create mode 100644 .gitignore

create mode 100644 .mvn/wrapper/MavenWrapperDownloader.java

create mode 100644 .mvn/wrapper/maven-wrapper.jar

create mode 100644 .mvn/wrapper/maven-wrapper.properties

create mode 100644 mvnw

create mode 100644 mvnw.cmd

create mode 100644 pom.xml

create mode 100644 src/main/java/HomeController.java

create mode 100644 src/main/java/Movie.java

create mode 100644 src/main/java/MovieController.java

create mode 100644 src/main/java/MovieRepository.java

create mode 100644 src/main/java/com/exam/demo/TechCRUDprojectApplication.java

create mode 100644 src/main/resources/application.properties

create mode 100644 src/main/resources/templates/add-movie.html

create mode 100644 src/main/resources/templates/edit-movie.html

create mode 100644 src/main/resources/templates/home.html

create mode 100644 src/main/resources/templates/show-movie.html

create mode 100644 src/test/java/com/exam/demo/TechCruDprojectApplicationTests.java

D:\_Documente\Desktop\techCRUDproject>git branch

* master

D:\_Documente\Desktop\techCRUDproject>git remote add origin


https://github.com/MadaPas/MoviesAppProject.git

D:\_Documente\Desktop\techCRUDproject>git remote -v
origin https://github.com/MadaPas/MoviesAppProject.git (fetch)

origin https://github.com/MadaPas/MoviesAppProject.git (push)

D:\_Documente\Desktop\techCRUDproject>git push -u origin master

Enumerating objects: 32, done.

Counting objects: 100% (32/32), done.

Delta compression using up to 4 threads

Compressing objects: 100% (25/25), done.

Writing objects: 100% (32/32), 52.71 KiB | 2.51 MiB/s, done.

Total 32 (delta 0), reused 0 (delta 0)

To https://github.com/MadaPas/MoviesAppProject.git

* [new branch] master -> master

Branch 'master' set up to track remote branch 'master' from 'origin'.

D:\_Documente\Desktop\techCRUDproject>

You might also like