AnjulGupta12 / How_To_Upload_Folder_to_Github

This repository is for the learning purpose "How to upload Folder to the GitHub". You can't add the whole folder to GitHub but file one by one. So for that purpose I had created this repository.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How_To_Upload_Folder_to_Github

This repository is for the learning purpose "How to upload Folder to the GitHub". You can't add the whole folder to GitHub but file one by one. So for that purpose I had created this repository.

HOW TO ADD FOLDER via GIT BASH

  1. Open Git Bash
  2. git --version
  3. open project folder in git bush

for eg:- folder path is C\\Users\\Selaniumproject\\Eclipse\\POM_Flipkart_Git then type this way:
cd c:
cd Users
cd Selaniumproject
cd Eclipse
cd Eclipse
cd POM_Flipkart_Git

  1. git init
  2. git status

    here it shows some file in red colour it shows thiese files can be uploades if not shown then try to delete origin name from here using
    git remote rm origin

  3. git config --global user.email "anjulgupta1205@gmail.com"
  4. git config --global user.name "AnjulGupta12"

    name and emailid of git account

  5. git add .
  6. git commit -m "First Commit"
  7. git remote add origin htttp://github.com/Selenium56sen/Jenkin_GitHub_Flipkart.git

    this is repository link
    this origin word will create problem sometime as i told at 5th as problem to remove this there if it cause prob

  8. git push -u origin master
    now refresh your github page
    only if till here it is not working go for these two step
  9. git config --global http.sslbackend schannel
  10. git push -u origin master

OR

There isn’t a way to upload an entire folder through the web UI. The easiest way to do that would be to:

Clone the repository locally
Make the changes to the local version
Commit the changes locally
Push the changes back up to the GitHub repository

About

This repository is for the learning purpose "How to upload Folder to the GitHub". You can't add the whole folder to GitHub but file one by one. So for that purpose I had created this repository.