Answer the question
In order to leave comments, you need to log in
How to connect to the desired github repository?
There is a repository on github, I downloaded the files using the download button instead of clanning. And for this, the files are in no way connected with that repository. How can I make the files on my PC connect to that repository? (The change was made in local files, so cloning one from github is not an option)
Answer the question
In order to leave comments, you need to log in
git init
git remote add origin url_репозитория
git fetch origin
git reset --mixed origin/master
git add измененные файлы
git commit -m "комментарий к коммиту"
git push -u origin master
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question