Get a local copy of a GitHub repo, track changes and push updates back to the remote

后端 未结 4 906
眼角桃花
眼角桃花 2020-12-29 16:29

I have a repo on GitHub and I want to update it with changes made to the folder I pulled it from.

What are the steps, without jargon or short hand terms, a new Git u

4条回答
  •  别那么骄傲
    2020-12-29 17:18

    At first you cd into the repository:

    cd My-Repository
    

    You add all the files you want to have in the commit:

    git add my-code
    

    You commit the changes:

    git commit -m "Commit-Message"
    

    And then you push the changes up to github (Be sure to clone it via SSH or HTTPS). When working with branches you have to replace „master“ with the correct branch.

    git push origin master
    

提交回复
热议问题