how to add file into git repository

how to add file into git repository

First login your git account then create a git repository

 

then create a folder into your drive and paste file into it 

then right click into your git folder and click git bash here.

if this is your first git repository then configure your git with 

 

git config --global user.name "Your Username"
git config --global user.email "Your Email"

then write

git init

git status

git add .  // . for all files

git commit -m 'your text'

git remote add origin <your git repo link >

git push -u origin master // if this is get error then write

git pull origin master --allow-unrelated-histories 

git push -u origin master

 

if it get error then try again from first to last 

 

 

dini sohbet Texture R57 shell indir Türk instagram takipçi satın al