Advertisement
Guest User

Untitled

a guest
May 30th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. GIT
  2.  
  3. --switch to develop branch
  4. git checkout develop
  5.  
  6. -- to check status
  7. git status
  8.  
  9. --get latest in develop from remote to local
  10. git pull --rebase origin develop
  11.  
  12. --create a branch
  13. git branch feature/SE-489
  14.  
  15. --swtich to branch
  16. git checkout feature/SE-489
  17.  
  18. —commit locally
  19. git add --all
  20.  
  21. git commit -m "<<write comment>>"
  22.  
  23. --merge with develop branch locally
  24. git checkout develop
  25.  
  26. git merge feature/SE-489
  27.  
  28. --push to develop in remote from local
  29. git push origin develop
  30.  
  31. —revert a file
  32. git checkout —- file path
  33.  
  34. --run cucumber tests
  35. mvn clean install -Dcucumber.tags="--tags @SE-314 --tags @complete" -Denv=sppd_dev_ansu
  36.  
  37. --run specific one
  38. mvn clean install -Dcucumber.tags="--tags @SE-489" -Denv=sppd_dev_ansu
  39.  
  40. --run all tests
  41. mvn clean install -Denv=sppd_dev_ansu
  42.  
  43. MERGING MASTER
  44. git pull origin develop
  45. git checkout master
  46. git pull origin master
  47. git merge --squash develop
  48. git commit -m "commit description"
  49. git push origin master
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement