Git Clone

satya - 10/24/2019, 11:36:18 AM

Git clone is documented here

Git clone is documented here

satya - 10/24/2019, 11:38:16 AM

Briefly

Clones a repository into a newly created directory,

creates remote-tracking branches for each branch in the cloned repository (visible using git branch --remotes),

and creates and checks out an initial branch that is forked from the cloned repository?s currently active branch.

After the clone, a plain git fetch without arguments will update all the remote-tracking branches,

and a git pull without arguments will in addition merge the remote master branch into the current master branch, if any (this is untrue when "--single-branch" is given; see below).

This default configuration is achieved by creating references to the remote branch heads under refs/remotes/origin and by initializing remote.origin.url and remote.origin.fetch configuration variables.

satya - 10/24/2019, 11:38:55 AM

I (yet) am not comfortable cloning on command line

I (yet) am not comfortable cloning on command line

satya - 10/24/2019, 11:39:31 AM

local link: here is how to clone in eclipse using egit

local link: here is how to clone in eclipse using egit

satya - 10/24/2019, 11:40:10 AM

Local link: Here is how to clone in vscode

Local link: Here is how to clone in vscode

satya - 10/24/2019, 11:46:12 AM

When starting a new project it is better

1. Start on the server

2. Clone to a local directory as it sets up the origin and master branch correctly

3. Set your .getignore files accordingly to your dev environment

4. (optionally) git pull (it will fetch and merge the master branch to local)

5. Copy/change any files needed

6. stage and commit to local master

7. git push (tracked local master to origin/master) to push the latest local master commit to origin/master server