GithubHelp home page GithubHelp logo

cli-project-resource's Introduction

CLI Project Time!!

Starting the project by creating a local directory and connecting to a remote repository:

[This should be the first thing you do before you start coding]

Why you ask? You want to be able to commit your changes as you build your app

What are commits? Commits

Creating a local directory [local]

  • First create folder/directory on your local drive

    • This step happens in the terminal + VsCode
    • Command for making a directory is: mkdir [file_name] i.e. mkdir cli_project

Creating a repository [remote]

  • Once local directory has been created, create a remote repository
  • Sign into Github, and then navigate to the + sign in the upper right corner and click new repository
  • The only fields you need to modify are:
    • Repository name - Give your project a name!
    • Then click create repository
    • You will add a license, but save this for the end

Connecting your local directory with your remote repository

  • Back in the terminal, run the following commands:

    1. git init - Will initialize the local directory
    2. git add . - . means all, so this command is adding all changes to your commit
    3. git commit -m write a commit message - command to commit, -m stands for message and then after you want to write a commit message that makes sense.
    • Things to consider for commit messages, what change did you make and where
    • Write your commit messages like your life depends on it!
    1. Go back to the new repository page on github and copy the following last three lines
    • git branch -M main
    • git remote add origin [email protected]:aisayo/test.git
    • git push -u origin main
    1. Paste these 3 lines (you can paste all at once) in your terminal and hit enter
    2. Refresh your Github page and viola!

    Video Walk Through

cli-project-resource's People

Contributors

aisayo avatar

Watchers

James Cloos 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.