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.
- Open Git Bash
- git --version
- 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
- git init
- 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 - git config --global user.email "anjulgupta1205@gmail.com"
- git config --global user.name "AnjulGupta12"
name and emailid of git account
- git add .
- git commit -m "First Commit"
- 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 - git push -u origin master
now refresh your github page
only if till here it is not working go for these two step - git config --global http.sslbackend schannel
- git push -u origin master
Clone the repository locally
Make the changes to the local version
Commit the changes locally
Push the changes back up to the GitHub repository