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
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.
When you click on Create repository this quick setup is open up. nosotros follow this command to upload a project.
3. Open up Git Bash
Just search Git bash and open.
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 "
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.
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 . "
7. Commit a file into the git repo is to write a commit bulletin.
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"
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.
xi. Check to Repository
Refresh Repository page and you will find your files in repositories.
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
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 . "
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
4. Check to Repository
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.
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