Git Commands (init, add, commit, push, pull)
Quality Thought is recognized as the best software testing institute in Hyderabad, offering top-notch training in manual testing, automation testing, and full stack testing tools. With a focus on industry-relevant curriculum and hands-on practice, Quality Thought prepares students for real-world software testing challenges. The institute provides expert-led training on popular tools and frameworks like Selenium, TestNG, Jenkins, Git, Postman, JIRA, Maven, and Cucumber, covering both frontend and backend testing essentials.
Quality Thought’s Full Stack Testing course is specially designed to make students proficient in both manual testing fundamentals and automated testing tools, along with exposure to API testing, performance testing, and DevOps integration. The institute stands out for its experienced trainers, live projects, placement support, and flexible learning options including classroom and online modes.
Whether you are a fresher aiming for a job or a working professional looking to upskill, Quality Thought offers customized learning paths. Its strong industry connections ensure regular placement drives and job interview
Git is a distributed version control system used to track changes in source code during software development. Below are some of the most commonly used Git commands:
git init
This command initializes a new Git repository in your current directory. It creates a hidden .git folder that tracks all version history.
Example: git init
git add
Adds changes from the working directory to the staging area. You can add specific files or use . to add all changes.
Example: git add index.html or git add .
git commit
Records changes in the local repository. You must provide a meaningful commit message describing what you changed.
Example: git commit -m "Added homepage design"
git push
Uploads committed changes from your local repository to a remote repository like GitHub. You may need to specify the branch.
Example: git push origin main
git pull
Fetches and merges updates from a remote repository into your local branch. It’s useful when collaborating with others.
Example: git pull origin main
Conclusion:
These Git commands are essential for managing code versioning in projects. They help in initializing a repository, tracking changes, saving versions, and syncing work with a team through remote repositories like GitHub or GitLab.
Introduction to Git and GitHub
Comments
Post a Comment