Tag Archives: Git

A Tale of a New Developer and Git 💻🚀

Alex, a bright-eyed new developer, was eager to dive into his first open-source project 🚀. The project’s code was hosted on a remote repository, and Alex’s first task was to get a local copy. He opened his terminal and typed:

git clone https://github.com/open-source-project/awesome-project.git

This command, git clone, fetched the entire repository from GitHub and created a local copy on his machine. 🌎

Now, Alex was ready to start contributing. He began by creating a new branch for his feature: 🌳

git checkout -b new-feature
Continue reading A Tale of a New Developer and Git 💻🚀

Git Pull

git pull fetches commits from a remote repository and merges them into your current local branch. It’s actually two commands in one — git fetch followed by a merge (or rebase, depending on configuration) — which is exactly why modern Git insists you tell it which reconciliation strategy you want. This is the tenth post in this site’s Git command guide, following Git Push.

Continue reading Git Pull

Git Log

git log displays the commit history of a repository — author, date, commit hash, and message, in reverse chronological order with the most recent commit first. It’s the command I reach for whenever I need to answer “who changed this and when,” and it has far more useful flags than the bare command suggests. This is the eleventh post in this site’s Git command guide, following Git Pull.

Continue reading Git Log