How to “Commit” changes to GitHub with GitHub Desktop

流过昼夜 提交于 2019-12-10 12:48:44

问题


I have recently downloaded GitHub Desktop and clone a repository. I am trying to upload new project files in it by GitHub Desktop. How do I go about doing this?


回答1:


Okay, I too had the same problem and i figured it out. Make whatever the changes that you want to make in your local repository. open github desktop app.

click on the repository at the left hand pane.

On the top you will see a drop down menu (by default set to master in my case), change it if you so desire or leave it the way it is.

click on the changes tab.

type something in the summary section.

type something in the description section.

The commit to master gets highlighted. Click on it and it will commit to the master on your desktop app.

Now click on sync on the top right corner of your github desktop app and it will sync to the online repository.




回答2:


You must first create the repository within GitHub,

Then you open GitHub Desktop

  1. Click the New Button (The plus icon top left)
  2. Click "Clone"
  3. Select the repository you just created.
  4. It will ask you to choose a directory, your chosen directory must contain a folder with the same name as the repository.
  5. Click the "Sync" button located top-right of the application.

GitHub Desktop will automatically detect any changes within the directory, and will show "Uncommited Changes" within the application.

Commit means you are willing to submit your changes to the repository and when you are ready to do so click on "Uncommited Changes", provide it with a title and an optional description and then click "Commit".

Done!




回答3:


I've noticed with the latest version I had to maximize the window for the "Summary" and "Description" text boxes to become visible. Below those fields you will notice the "Commit to master" button.



来源:https://stackoverflow.com/questions/27211578/how-to-commit-changes-to-github-with-github-desktop

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!