Git Quick Tips
Overwrite local branch file with the file from remote
switch to the branch that has the unwanted file (my-file.txt).
git checkout HEAD – my-file.txt
Technology Enthusiast
Overwrite local branch file with the file from remote
switch to the branch that has the unwanted file (my-file.txt).
git checkout HEAD – my-file.txt
TestNG has many Annotations like @Test
, @DataProvider
, @BeforeTest
, @AfterTest
, etc.
In most cases, these Annotations will suffice the user’s needs, but what if you need a specific runtime behavior for your tests and none of these Annotations...