Giter Site home page Giter Site logo

basic-git's Introduction

Basic Git

Just the basics.

Recommendation

  • Create a projects root folder on your local computer to hold all repositories (repos).
  • This 'projects' folder is NOT under source control.
  • All of its SUBFOLDERS are individually under source control.

Process Options

  • A: Start on your local machine & push up to cloud
  • B: Start in the cloud & clone to local machine

Option A: Start on your local machine

A.1: Start local project

Create a new subfolder under your projects root folder. Use your local IDE to create your app in this subfolder. Use all lower kebob case for the folder name (e.g. my-app).

Include:

  • .gitignore
  • README.md

A.2: Create cloud repo

  • Create a cloud repo with same name as the local repo, e.g. my-app.
  • Get the HTTPS URL (see the suggested commands)

A.3: Initialize, add & commit, then push

When ready to move the project under source control (use the URL from your new cloud repo below):

git init
git remote add origin https://github.com/denisecase/basic-git.git

git add --all
git commit -m "first commit"

git push origin master

Option B: Start in the cloud

B.1: Create cloud repo

  • Create a cloud repo - use all lower kebob case for the folder name (e.g. my-app).

B.2: Clone project

Click the 'Clone or download' button to get the HTTPS URL of the project repo.

Open Git Bash in your root projects folder (described above). Use the following to duplicate the repo as a subfolder.

git clone https://github.com/denisecase/basic-git.git

Basic Git Commands

Learn More


Repository

basic-git's People

Contributors

denisecase avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.