Back to Blog

Upload your project/files in GitHub using commands

July 9, 2020·1 min read·
#python#github#portfolio
Upload your project/files in GitHub using commands

Upload your project/files in GitHub using following commands;

Tell the GitHub who are you;

 $ git config --global user.email"saurabhchavan052@gmail.com"

 $ git config --global user.name"100rabhcsmc"
Enter fullscreen mode Exit fullscreen mode

Lets git ..

$ git init

$ git add -A#adding file

$git commit -m "your commit"

$git remote add origin reponame

$git push origin master
Enter fullscreen mode Exit fullscreen mode

if you got any error using this command then you can use following command

$ git push --force origin master
Enter fullscreen mode Exit fullscreen mode

thanku....

:)

Originally published on dev.to

Follow me on X for more content.

< Coded by Saurabh Chavan >