Git Product home page Git Product logo

git-basics's Introduction

git-basics

Prerequisites:

To get started

  • Fork the repo: https://github.com/govindgoel/git-basics/fork

  • Clone the repo: git clone https://github.com/{your-github-username}/git-basics.git

  • Navigate to the cloned repo: cd git-basics

  • Create a new branch: git checkout -b {yourName}

  • Now you can add a new file with name yourName-exploring-git.md and write something in it.

  • It's time to push your changes:

    • First see what you have added/changed by doing: git status
    • To add changes to staging do: git add .
    • To commit changes do: git commit -m "yourName-learning-git" [in quotes you provide the commit message basically]
    • To push changes do: git push origin {branchName} [it will be your name that you used to create a branch]
    • If it asks to add upstream then do that and push again otherwise it's done.
  • To create a pull request:

    • Go to the repo in your Github account and click on contribute Screenshot from 2022-12-30 18-31-55
    • You should see something like below Screenshot from 2022-12-30 18-38-28
  • Click on create pull request

  • It's done ๐ŸŽ‰

Key Takeaways:

  • What is Git
  • Why we need Git
  • Git basic commands
  • What is a commit
  • How to add & push changes to a GitHub Repo
  • How to raise a pull request

If you are interested to learn & explore more do checkout this: https://learngitbranching.js.org/

git-basics's People

Contributors

govindgoel 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.