Guest User

history of git server - git client - and fabric script

a guest
Aug 26th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 KB | None | 0 0
  1. [git-server@server0 RCS.repo]$ history
  2. 1 mkdir gitrepo
  3. 2 cd git
  4. 3 cd gitrepo
  5. 4 git init --bare
  6. 5 ls -a
  7. 6 ls
  8. 7 mkdir RCS.repo
  9. 8 cd RCS.repo/
  10. 9 git init --bare
  11. 10 git branch
  12. 11 python
  13. 12 ls
  14. 13 python
  15. 14 history
  16. [git-server@server0 RCS.repo]$
  17.  
  18. [root@desktop0 RCS.repo]# history
  19. 1 rpmquery git
  20. 2 yum install git-core -y
  21. 3 userradd git-local
  22. 4 useradd git-local
  23. 5 pasdsswd git-local
  24. 6 passdwd git-local
  25. 7 passwd git-local
  26. 8 su - git-local
  27. 9 yum install git-core -y
  28. 10 useradd dev1
  29. 11 passwd dev1
  30. 12 su - dev1
  31. 13 ls
  32. 14 vim aws_vm.json
  33. 15 python
  34. 16 vim aws_vm.json
  35. 17 python
  36. 18 vim aws_vm.json
  37. 19 python aws_vm.json
  38. 20 ls -lhrt
  39. 21 cat aws_vm1.json
  40. 22 vim aws_vm1.json
  41. 23 ls
  42. 24 cp aws_vm.json test.json
  43. 25 vim test.json
  44. 26 python
  45. 27 mv test.json aws_vm.json
  46. 28 cat aws_vm.json
  47. 29 git clone git-server@172.25.0.11:RCS.repo
  48. 30 ls
  49. 31 cp aws_vm.json RCS.repo/
  50. 32 cd RCS.repo/
  51. 33 git gui
  52. 34 git status
  53. 35 git add .
  54. 36 git config --global user.name cloud1
  55. 37 git config --global user.email cloud1@localhost
  56. 38 git commit -m "CR#1000,updated the aws_vm.json"
  57. 39 git pull -u origin master
  58. 40 git push -u origin master
  59. 41 ls
  60. 42 vim aws_vm.json
  61. 43 git status
  62. 44 git add
  63. 45 git add .
  64. 46 git commit -m "CR#10001,updated the aws_vm.json"
  65. 47 git push -u origin master
  66. 48 ls
  67. 49 git pull -u origin master
  68. 50 ls
  69. 51 vi aws_vm.json
  70. 52 git add .
  71. 53 git commit -m "CR#10002,updated the aws_vm.json"
  72. 54 git push -u origin master
  73. 55 history
  74. [root@desktop0 RCS.repo]#
  75.  
  76. [root@oracle_db push]# cat push.py
  77. import fabric
  78. fabric.api.env.user="root"
  79. fabric.api.env.password="redhat"
  80. fabric.api.env.hosts=["192.168.122.22"]
  81. def push():
  82. fabric.api.put("/root/.jenkins/workspace/aws_resource_create/aws_vm.json","/aws/")
  83. fabric.api.run("python /root/aws_automation/create_instance.py")
  84. [root@oracle_db push]#
Add Comment
Please, Sign In to add comment