How to make your first pull request in git hub.

Ángel Ortega
3 min readJun 2, 2023

--

If you haven’t used GitHub so far, don’t worry! Making your first pull request on a project with embedded files may seem like a challenge, but I’m here to make the process easier and more fun for you.

Before we start with your first pull request, we need to establish the connection between your local repository and the remote repository. But don’t panic, it’s easier than it sounds!

code man

Let’s follow the command line steps together. I’m sure that once we’ve mastered them, you’ll feel like an expert in the world of GitHub and project collaborations.

Remember that every great adventure starts with a first step, and we’re about to take that step together. Get ready to dive into the exciting world of collaboration and version control! I can’t wait to see your first pull requests shine on the project!

code

Time to connect with the world!

We are going to establish a remote connection to the repository, which will allow us to share and collaborate on the project easily.

git remote add origin <repositorio>

The origin name, or any other name we give to our connection, is key to establish an effective communication between our local repository and the remote repository. It is like giving a nickname to our connection to easily identify it.

Let’s move on!

In step two, if you are not logged in or have not entered an SSH key, the system will ask you to log in with your GitHub profile. Don’t worry, it’s an important step to make sure you have proper access and can start collaborating on the project securely.

Welcome to step three of our exciting adventure!

Once you’re logged into GitHub, it’s time to verify the remote connection using the “git remote” command. This command will show you all of your local project’s remote connections, allowing you to confirm that everything is in order and ready for collaboration.

git remote

Our first pull request!

After following these simple steps, it’s time to join our local and remote branches. But don’t worry, it’s not as complicated as it sounds.

git pull origin <branch> --allow-unrelated-histories

The “allow-unrelated-histories” command is a real gem, as it takes care of merging the history and files from our local and remote repositories. Best of all, we only need to run this command during our first pull request. After that, it will no longer be necessary to add it in our commands.

The big leap!

After following these simple steps, it’s time to create our first push request. This is where the magic happens, as we will be sharing our changes and contributions to the project.

git push origin <branch>

I want to take this moment to express my sincere thanks. You have embarked on this adventure of learning about GitHub, making pull requests, and collaborating on projects in an awesome way.

--

--

Ángel Ortega
Ángel Ortega

No responses yet