-2

I have created a remote repo named textfile in Github and also linked a local folder named textfile to git. I want to add a new text file from the folder to github. What are the steps for doing that using the command line in Ubuntu?

I am a beginner to GitHub.

1

Open terminal and go to your repo directory. Add files:

git add *

Commit:

git commit -m 'my message'

Push it to the Github:

git push origin master

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.