DEV Community

Saurabh Chavan
Saurabh Chavan

Posted on • Edited on

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....

:)

Top comments (0)