

On your Mac (or any other machine on which you want to access that. Now you can specify the repository created on the server as the remote repository for your local repository. In this example, we will use the Nano text editor to modify the file within the command line window. Then on the Mac create a new repository: mkdir mylocalrepo cd mylocalrepo git init echo 'sometext' > firstfile.txt git add firstfile.txt git commit -m 'First commit'. Open the readme file in a text editor and add the text you want it to contain. Run: git checkout -b create-readme-fileģ. Create and switch to a new branch on which to modify the file. In Git Bash, create an empty readme file by running touch readme.md.Ģ. However, you can still do it to keep track of your feature updates and history.įor this guide, we will create a readme file for our repository locally and make a pull request on GitHub to illustrate the process.ġ.

If you are the co-owner or owner of a repository, you don't have to create pull requests to merge your changes. Then the owner can approve the pull request and merge the changes into the main repository. Step 16: Create a Pull RequestĬreate a pull request (PR) to inform a repository owner that they should review the changes you've made to their code. Note: Our detailed guide on How To Resolve Merge Conflicts in Git offers tips for preventing merge conflicts, as well as ways to resolve existing merge conflicts.
