Dear Readers,
In this article,we will see Clone GitHub Repository in windows.
Steps to Follow
- Fork Repository “time-tracker” to your account.
- Clone Repository “time tracker”.
- Run maven package “mvn clean package” inside the Repository “time-tracker”.
1. Fork Repository “time-tracker” to your account
First,we need to go existing GitHub time tracker repository by using below link.
https://github.com/SaiDevOpsFaculty/time-tracker
We can see the time tracker repository by searching above link in browser.
Fork Repository
Click on Fork.
Logging to GitHub Account
Provide username and password then click on Sign in.
Click on Fork.
The repository “time tracker” has been forked to your account successfully.
2. Clone Repository “time tracker”
Copy the repository “time-tracker” URL for cloning.
Go inside the command prompt and clone the repository “time-tracker”
Go to home location
1 2 3 4 5 6 |
Microsoft Windows [Version 10.0.17763.973] (c) 2018 Microsoft Corporation. All rights reserved. C:\Users\Priya>cd ../.. C:\> |
Clone Repository “time-tracker”
1 2 3 4 5 6 |
C:\>git clone https://github.com/Ramesh-Ktexperts/time-tracker.git Cloning into 'time-tracker'... remote: Enumerating objects: 272, done. remote: Total 272 (delta 0), reused 0 (delta 0), pack-reused 272 eceiving objects Receiving objects: 100% (272/272), 61.84 KiB | 154.00 KiB/s, done. Resolving deltas: 100% (81/81), done. |
Verify the Repository “time-tracker”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
C:\>dir Volume in drive C is Windows Volume Serial Number is 9458-8C1D Directory of C:\ 28-01-2020 22:45 <DIR> DevTools 11-08-2019 15:18 <DIR> HashiCorp 14-09-2019 22:24 <DIR> Intel 28-01-2020 22:29 <DIR> Program Files 31-01-2020 14:41 <DIR> Program Files (x86) 06-12-2019 17:19 1,179,024 putty.exe 06-12-2019 17:19 696,720 puttygen.exe 14-09-2019 20:20 25,424,128 python-3.7.3.exe 14-09-2019 20:43 14,110,478 python-3.7.4-docs-pdf-a4.zip 22-08-2019 21:53 <DIR> swsetup 01-02-2020 20:34 <DIR> time-tracker 05-11-2019 19:34 <DIR> Users 26-01-2020 20:50 <DIR> Windows 4 File(s) 41,410,350 bytes 9 Dir(s) 462,449,721,344 bytes free |
Go inside the Repository “time-tracker”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
C:\>cd time-tracker C:\time-tracker>dir Volume in drive C is Windows Volume Serial Number is 9458-8C1D Directory of C:\time-tracker 01-02-2020 20:34 <DIR> . 01-02-2020 20:34 <DIR> .. 01-02-2020 20:34 158 .gitignore 01-02-2020 20:34 <DIR> core 01-02-2020 20:34 11,357 LICENSE 01-02-2020 20:34 3,512 pom.xml 01-02-2020 20:34 96 README.md 01-02-2020 20:34 <DIR> web 4 File(s) 15,123 bytes 4 Dir(s) 462,480,953,344 bytes free C:\time-tracker> |
3. Run maven package “mvn clean package” inside the Repository “time-tracker”
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
C:\time-tracker>mvn clean package [INFO] Scanning for projects... [INFO] ------------------------------------------------------------------------ [INFO] Reactor Build Order: [INFO] [INFO] Time Tracker (Parent) [pom] [INFO] Time Tracker (Core) [jar] [INFO] Time Tracker (Web) [war] [INFO] [INFO] ----------< training.taylor.time-tracker:time-tracker-parent >---------- [INFO] Building Time Tracker (Parent) 0.5.0-SNAPSHOT [1/3] [INFO] --------------------------------[ pom ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ time-tracker-parent --- [INFO] [INFO] -----------< training.taylor.time-tracker:time-tracker-core >----------- [INFO] Building Time Tracker (Core) 0.5.0-SNAPSHOT [2/3] [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ time-tracker-core --- [INFO] [parsing started SimpleFileObject[C:\time-tracker\core\src\main\java\training\taylor\timetracker\core\dao\TimeEntry.java]] [INFO] [parsing completed 8ms] [INFO] [parsing started SimpleFileObject[C:\time-tracker\core\src\main\java\training\taylor\timetracker\core\Tracker.java]] [INFO] [parsing completed 1ms] [INFO] [loading /modules/java.base/java/lang/Class.class] [INFO] [checking training.taylor.timetracker.core.TrackerCoreConfig] [INFO] [total 737ms] [INFO] [INFO] --- maven-surefire-plugin:2.12.4:test (default-test) @ time-tracker-core --- [INFO] Surefire report directory: C:\time-tracker\core\target\surefire-reports ------------------------------------------------------- T E S T S ------------------------------------------------------- Running training.taylor.timetracker.core.TrackerTest Feb 01, 2020 8:40:14 PM org.springframework.test.context.support.AbstractTestContextBootstrapper getDefaultTestExecutionListenerClassNames INFO: Loaded default TestExecutionListener class names from location [META-INF/spring.factories]: [org.springframework.test.context.web.ServletTestExecutionListener, org.springframework.test.context.support.DirtiesContextBeforeModesTestExecutionListener, org.springframework.test.context.support.DependencyInjectionTestExecutionLis [INFO] WEB-INF\web.xml already added, skipping [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for Time Tracker (Parent) 0.5.0-SNAPSHOT: [INFO] [INFO] Time Tracker (Parent) .............................. SUCCESS [1.661 s] [INFO] Time Tracker (Core) ................................ SUCCESS [ 32.936 s] [INFO] Time Tracker (Web) ................................. SUCCESS [ 4.893 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 40.133 s [INFO] Finished at: 2020-02-01T20:40:21+05:30 |
Thank you for giving your valuable time to read the above information.
Follow us on
Website : www.ktexperts.com
Facebook Page : KTexperts
Linkedin Page : KT EXPERTS