Giter VIP home page Giter VIP logo

git-test's Introduction

git-test

  • First GitHub repository! Yaay.
  • Applying practical skills in Git basic workflow: create repository, clone, make changes, stage, and commit.

Git clone

git clone: clones the remote .git repository and place files and folders on the local machine for modification or use.

Git status

git status: checks the state of git repositories and displays files as either modified (changes made to them), staged (green: changes made to the files have been tracked), and committed (working treee clean. indicates that changes made to the files have been committed).

Git add

Adds all the selected files to the staging area, making them available for committment to the remote repository. This step is fundamental to ensure that changes made to a file are tracked accordingly.

Git commit

Git takes a snapshot of the project in the project in the staging area and stores it as a reference to the snapshot. It is during this time that Git takes a snapshot of the project's current state and sores

Git log

Display entries of changes made to the project, including the commit message, the author making the commit, the date, and the time of the commit.

Git push

git push: uploads the project files to the GitHub repository of the project.

git push origin main

Used for specificity if the project you are working on has another branch or a different remote. To learn more about this down the Odin curriculum.

Git Cheatsheet for beginnners

  1. Commands related to the remote repository
    git clone
    git push
    
  2. Commands related to workflow
    git add .
    git commit -m "A message describing what has been done to make this snapshot different"
    
  3. Commands related to checking status or log history
    git status
    git log
    
  4. Basic Git syntax Program | action | destination e.g.
    git | add | .
    git | commit -m | message
    
    

Git Best Practices

  • Atomic commits. Make commits to include changes related to only one feature or task of the program.
  • Leveraging the atomic commits to make commit messages more useful. These two practices:
    • Easy to revert a specific change without losing other changes
    • Facilitates writing of better commit messages.

git-test's People

Contributors

deniskibichiy avatar

Watchers

 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.