Git commands every Automation QA engineer should know

Git commands every Automation QA engineer should know

Git commands every automation QA engineer should know????????????


??git init -b <branch_name> ? Initializes a new Git repository and creates a new branch with the specified name.


??git add -p ?Allows you to select which changes to add to the staging area.


??git commit -m "Commit message" ? Allows you to specify a custom commit message.


??git status -v ? Provides more detailed information about the status of the repository.


??git branch -a ?Lists all branches in the repository, including remote branches.


??git checkout -b <new_branch_name> ? Creates a new branch and switches to it.


??git merge <branch_name> ? Merges the specified branch into the current branch.


??git push origin <branch_name> ? Pushes the current branch to the remote repository called "origin".


??git fetch origin ? Fetches changes from the remote repository called "origin".


??git reset --hard <commit_hash> ? Resets the working directory to the specified commit.


??git checkout . ? Undoes changes to all files in the working directory.


??git log --oneline ? Displays the history of commits in a single line format.


??git stash ? Saves the current state of the working directory to the stash.


??git stash pop ? Restores the current state of the working directory from the stash.


??git branch -d <local_branch_name> ? allows you to delete a local branch only if you’re currently not in and viewing or having unpushed commits or unmerged changes.


??git branch -D <local_branch_name> ? Here -D is an alias for - - delete - - force It deletes a local branch fircefully even after having unmerged changes (use this with caution??)


??git push origin -d <remote_branch_name> ? allows you to delete a remote branch in remote repo named origin


?Additional tips?


??Use a consistent naming convention for your branches. This will make it easier to track your changes and identify which branch is associated with a particular feature or bug fix.


??Use descriptive commit messages. This will help you and others understand what changes were made in each commit.


??Use a pull request workflow. This will allow you to get feedback on your changes before merging them into the main branch.


??Use a continuous integration server. This will help you to automatically test your code after each commit.


#qa?#automation?#engineer?#git?#github?#cvs?#selenium?#automationtesting?#gitcommands

要查看或添加评论,请登录

Muhammad Hamza的更多文章

  • How can be a good Software Tester?

    How can be a good Software Tester?

    How can I be a good Software Tester? ?? 1:Technical skills Well, before we start, we say in the name of God and pray…

  • Checklist for 30 days-Challange for Fresher SQA Engineer

    Checklist for 30 days-Challange for Fresher SQA Engineer

    What is Software Testing, Benefits, Objectives, and Why its necessary? How any Website is made? What are the…

    2 条评论
  • Google Chrome extensions for QA Engineers

    Google Chrome extensions for QA Engineers

    Here are 10 useful Google Chrome extensions for QA Engineers: 1. Page Ruler: Allows accurate measurement of element…

    2 条评论
  • Unleashing Creativity in the Realm of Software Quality Assurance

    Unleashing Creativity in the Realm of Software Quality Assurance

    Introduction: Software Quality Assurance (SQA) is a crucial discipline in the software development lifecycle, ensuring…

  • Advancements and best Approaches in QA

    Advancements and best Approaches in QA

    In recent years, there have been several advancements and new approaches in the domain of Software Quality Assurance…

  • Sign off in testing

    Sign off in testing

    Sign off in testing: QA sign-off is a formal process where the Quality Assurance (QA) team reviews and approves the…

  • Test Plan VS Test Strategy

    Test Plan VS Test Strategy

    Test Plan and Test Strategy: Test plans and test strategy are two important documents that guide software testing…

  • Bug Life Cycle

    Bug Life Cycle

    Bug Life cycle: Stages of a Bug that goes through its entire life cycle from New to Close. ? New: When a bug is logged…

  • A Day in the Life of a QA Engineer

    A Day in the Life of a QA Engineer

    A day in the life of a QA engineer is not really that different from that of a software developer. Each company you…

    7 条评论
  • Adobe Premiere Pro_CC 2019 Crack With Upgraded Free Download

    Adobe Premiere Pro_CC 2019 Crack With Upgraded Free Download

    Adobe Premiere Pro CC 2019 Crack is the best and most powerful professional video editing software for film and TV…

    3 条评论

社区洞察

其他会员也浏览了