How to Upload Project to Github From Windows

In this tutorial, we explain to you how to upload a projection to Github on your Windows desktop.

What is GitHub?

GitHub is a code hosting platform for collaboration and version control. GitHub lets you (and others) work together on projects.

Let see how to upload a project to Github on windows

1. Install git and create a GitHub account

The outset two things yous'll desire to install git and create a free GitHub account.

Follow the instructions here to install git (if it'southward non already installed). Note that for this tutorial we will exist using git on the command line only. While there are some not bad git GUIs (graphical user interfaces), I think it's easier to learn git using git-specific commands first and so to attempt out a git GUI once you're more comfortable with the command.

In one case y'all've done that, create a GitHub account here.  Accounts are gratis for public repositories, simply there'due south a accuse for individual repositories.)

2. Create new Repositories

Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or files. You tin add these files later your project has been pushed to GitHub.

Click on New repository

How to upload a project to Github on windows

Repository means a folder which contains all files. Simply type a repository proper name and requite a description(optional) and click on a Create repository.

How to upload a project to Github on windows
Github repository

When you click on Create repository this quick setup is open up. nosotros follow this command to upload a project.

How to upload a project to Github on windows

3. Open up Git Bash

Just search Git bash and open.

git bash

4. Alter the current working directory to your local project.

Means make a directory anywhere. Paste the path of that directory into fustigate.

To do that write in bash:- cd " path-proper name "

How to upload a project to Github on windows

Or you can become to that folder > right-click > Git Bash here

5. Initialize the local directory as a Git repository.

To practise that write in fustigate:- git init

You can run across .git binder in your folder.

How to upload a project to Github on windows

6. Add a file to the staging area

Add a file past using " git add <file-name> " for a single file.

To add together all files, use "git add . "

add file in github

7. Commit a file into the git repo is to write a commit bulletin.

add file in github

viii. Push the file into a remote repository. {{Github}}

git remote add origin [email protected]:"Username_on_github"/"Repository_Name"

nine. Setting up Git

If nosotros are setting up the git for the first time, we can configure the git with proper noun & email.

git config –global user.name "Your_Name"
git config –global user.email "Your-E-mail"

Setting up Git

x. Final PUSH

When to type "git push origin master" a pop Github login window opens. Enter the username or electronic mail and password and click on the Login button.

login in command line
push command github

xi. Check to Repository

Refresh Repository page and you will find your files in repositories.

repository

Calculation an existing project to GitHub using the command line

Hither you can come across I add ane file, that proper name is technotaught.txt

Repository

To button this file into the GitHub repository follow the pace below

1. Add a file to the staging surface area

Add a file past using " git add <file-name> " for a single file.

To add all files, apply "git add . "

how to upload a project to Github

two. Commit a file into the git repo is to write a commit bulletin.

Control: -> git commit -m "start commit"

3. Final Push

Command: -> git push button -u origin master

how to upload a project to Github

4. Check to Repository

how to upload a project to Github

And so this explains, how to upload project to Github on windows. Allow us know in the comment section if y'all take whatever problem related to Github.

lanesual1938.blogspot.com

Source: https://technotaught.com/how-to-upload-project-to-github-on-windows/

0 Response to "How to Upload Project to Github From Windows"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel