Changes

Jump to navigation Jump to search
Line 20: Line 20:  
All Git commands within this section must be run from within the project directory/repository.
 
All Git commands within this section must be run from within the project directory/repository.
   −
=== Setting up Git in a project directory ===
+
=== Setting up Git in an existing project directory ===
    
When setting up a Git project make sure you are in the root (top level) directory for your project and run the following command:
 
When setting up a Git project make sure you are in the root (top level) directory for your project and run the following command:
Line 28: Line 28:  
this initialises the repository and adds a hidden <code>.git</code> directory which will contain the archived project versions.
 
this initialises the repository and adds a hidden <code>.git</code> directory which will contain the archived project versions.
   −
There is no requirement for a remote server, Git can be used completely offline. However if you plan on pushing your project to GitHub you can create a repository on your account first then clone this locally using:
+
There is no requirement for a remote server, Git can be used completely offline.
 
  −
<code>git clone <repository-clone-url></code>
  −
 
  −
with this option you won't need to set a remote address later on. Details on creating a remote repository can be found below.
      
=== Setting a Remote Address ===
 
=== Setting a Remote Address ===
confirmed, superuser, Administrators
539

edits

Navigation menu