Git Clone: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Add e.g. example to clarify command instructions)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
Git Clone is a useful command in [[Linux Shell]]. Example:
Git Clone is a useful command in [[Linux Shell]]. For example:


git clone https://github.com/gbroques/ose-3d-printer-workbench
    git clone https://github.com/gbroques/ose-3d-printer-workbench


This will install this directory on your drive (to download the [[3D Printer Workbench]]
This will install this directory on your drive (to download the [[3D Printer Workbench]]).


=Overwrite Protection=
=Updating a Repository After You Cloned It=
By default you can't overwrite when you are updating. So remove the past one:
Navigate to the repository in the command line using the <code>cd</code> or "change directory" command (e.g. <code>cd ~/.FreeCAD/Mod/ose-3d-printer-workbench</code>):


rm -r directoryname.
    cd path/to/repository


Then you can Git Clone again.
Then, run the <code>git pull</code> command to update the repository.
 
For more information see https://git-scm.com/docs/git-pull.


=Git Clone a New Civilization=
=Git Clone a New Civilization=

Latest revision as of 17:59, 27 April 2020

Git Clone is a useful command in Linux Shell. For example:

   git clone https://github.com/gbroques/ose-3d-printer-workbench

This will install this directory on your drive (to download the 3D Printer Workbench).

Updating a Repository After You Cloned It

Navigate to the repository in the command line using the cd or "change directory" command (e.g. cd ~/.FreeCAD/Mod/ose-3d-printer-workbench):

   cd path/to/repository

Then, run the git pull command to update the repository.

For more information see https://git-scm.com/docs/git-pull.

Git Clone a New Civilization

This is what the Open Source Ecology project is all about.

Links

  1. 3D_Printer_Workbench_2020#Summary