Coder Social home page Coder Social logo

leet-code's Introduction

How to Commit a PR from your local device using git commands

  • Before using git commands you have to download the latest version of git on your device

  • for that watch the video below , it will help you with installing git to making your first PR

  • Fork the project: Click the gray Fork button in the top right of this page. This creates your copy of the project and saves it as a new repository in your github account

  • Click on the green Code button, then either the HTTPS or SSH option and, click the icon to copy the URL. Now you have a copy of the project. Thus, you can play around with it locally on your computer.

  • Run the following commands into a terminal window (Command Prompt, Powershell, Terminal, Bash, ZSH). Do this to download the forked copy of this repository to your computer.

  git clone https://github.com/YOUR_GITHUB_USERNAME/hacktoberfest-practice.git
  • Switch to the cloned folder. You can paste this command into the same terminal window.
  cd hacktoberfest-practice
  • Make a new branch. Your username would make a good branch because it's unique.
  git checkout -b <name-of-new-branch>
  • Open the README.md file

  • Add your name to the section that matches your Initial in this list. Then, add your name in alphabetical order. Then save your changes.

  • For example - [Full Name](https://github.com/your-username)

  • Stage your changes.

  git add README.md

or

  git add .
  • Commit the changes.
  git commit -m "Add <your-github-username>"
  • Check the status of your repository.
  git status
  • The response should be like this:
On branch <name-of-your-branch>
nothing to commit, working tree clean
  • Pushing your repository to GitHub.
  git push origin <name-of-your-branch>

or

  git branch -M main
  git push -u origin main

leet-code's People

Contributors

rohankumar01 avatar ankur249 avatar chiraggupta31 avatar kunalaggarwal483 avatar priyanshi2003 avatar subrat1111 avatar techshivam02 avatar subratkaushik avatar raghavkhanna13 avatar pratyu2003 avatar nikhil1682 avatar dinesh2010-coder avatar shreyapatike avatar chirag0008 avatar tanya1224 avatar shivam-30 avatar lakshmisharvanivalepe avatar gambhirsamarth avatar ruthvika03 avatar rohit1173 avatar riya59 avatar rajat-jain29 avatar supernova3infinite avatar shadowfax999 avatar nitin4043 avatar chiragkapoor20 avatar bharat9nigam avatar mishra-tushar avatar mittalkabir avatar potatowski 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.