Basics of Git for a QA Engineer

  • git init -> To initialize git in a folder
git remote add origin https://github.com/shivanandmishra14/english-framework.git
  • git add . -> To add the script files on git to commit.
  • git commit -m “sample_test_case” -> Confirming and committing the
  • git push -> push from current branch
  • git checkout master -> To switch control to master branch.
  • git branch new branch -> To create new branch
  • git checkout dev1 -> To switch control to dev1 branch
  • git status -> To show on which branch the Ide control is in
  • git pull -> To pull the recently committed code
  • Git stash -> save without change
  • git stash apply → to apply locally saved changes
  • Git pull origin master -> Pull code from master
  • git fetch -> a primary command used to download contents from a remote
git push -u origin master
git checkout mastergit merge dev1git push -u origin master

--

--

--

DevOps | Solution architect | Cloud Engineer | AWS SysOps Admin | Automation | Product enthu | Ex: Amazon, Airtel, Simplilearn, Paytm

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Demystifying APIs for Beginners

What is new in Java 17

Building an ETL Pipeline in Python

What is a web developer?

Properties of logical operators

Housekeepers Hire With Us in Ajax ON

엔터플, 싱크트리로 홍콩 Fintech Week 참가

What do Software Developers actually do?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shivanand Mishra

Shivanand Mishra

DevOps | Solution architect | Cloud Engineer | AWS SysOps Admin | Automation | Product enthu | Ex: Amazon, Airtel, Simplilearn, Paytm

More from Medium

What is Volume in programming?

Git 101 (for dummies)

Revert those changes in Git

Git: Understanding Semantic Commit Messages