KansaiRobot
KansaiRobot

Reputation: 9922

Modifying only one file in a github stored project

Although I use git to manage my projects locally, I have started lately to use github. Forgive me if I mistake the terminology but I usually fork a project, then clone it to my local system. I do the changes then I push it to my github repository. Later I am supposed to do a pull request

Is this the correct way of doing things, even when I have to do changes in only one file in a project with many files? Is that the only way?

Upvotes: 0

Views: 375

Answers (2)

sudavid4
sudavid4

Reputation: 1131

You may do it directly inside github.

Go to your fork -> navigate to the file you want to edit -> you'll see on the upper right corner the icon of a pencil that allows you to edit the file.

From there you may edit you file, commit and pull request all from inside github without having to clone your project locally

Upvotes: 1

VonC
VonC

Reputation: 1324757

It is, provided the original repo is not one you have created (ie, you are not the owner of the created repo).

If you are the owner of the created repo, you can simply clone it directly, modify it, commit and push back. No PR involved.

Upvotes: 1

Related Questions