How to upload code to GitHub?

How to upload code to GitHub?

STEP-1: Move your eye to the upper right corner of the website and click on this plus sign and then click on the New repository.

  • STEP-2: A screen will open as below,give your repository a name,keep it public and click on the checkbox displaying “Initialize this repository with a README” .
  • STEP-3: This screen should come up,if it is not coming make sure in the last step,you clicked the checkbox saying initialize it with readme.
  • STEP-4: Below screen will come,now click on the ‘choose your files’ link and move inside the folder project-01 and select all the files at once.
  • METHOD-2: If you are satisfied by uploading files through UI,its cool leave this section but if you want to know how you can do same using the command line
  • How to add a project to GitHub?

    In the command line, navigate to the root directory of your project.

  • Initialize the local directory as a Git repository.
  • N
  • git init -b main
  • To create a repository for your project on GitHub, use the gh repo create subcommand. Replace project-name with the…
  • Follow the interactive prompts. Alternatively, you can specify arguments…
  • READ ALSO:   What can you add to hamburger meat to make it taste better?

    How to create a blueprint in GitHub?

    Create a blueprint Select All services in the left pane. Select Blueprint definitions from the page on the left and select the + Create blueprint button at the top of the page. Select Start with blank blueprint from the card at the top of the built-in blueprints list. Provide a Blueprint name such as MyBlueprint.

    How to set up GitHub?

    Authenticate Yourself and Your Machine. Now that you have your Github account created, the first step is to…

  • Add the Key to Your Github Account. The next step is to add the SSH key to your Github account. What this…
  • Create a Github Repository. Now that your machine is linked…