Advertisement
Guest User

Untitled

a guest
Oct 4th, 2018
302
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 14.58 KB | None | 0 0
  1. git status
  2. On branch master
  3. Your branch is up to date with 'origin/master'.
  4.  
  5. nothing to commit, working tree clean
  6. [altinnimani@localhost CPool_Day03_2018]$ git remote show origin
  7. * remote origin
  8.   Fetch URL: git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
  9.   Push  URL: git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
  10.   HEAD branch: master
  11.   Remote branch:
  12.     master tracked
  13.   Local branch configured for 'git pull':
  14.     master merges with remote master
  15.   Local ref configured for 'git push':
  16.     master pushes to master (up to date)
  17. [altinnimani@localhost CPool_Day03_2018]$ git reflog
  18. 933c4e6 (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: clone: from git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
  19. [altinnimani@localhost CPool_Day03_2018]$ git log
  20. commit 933c4e63519c8103d5c7e708ffface675fd2f1bd (HEAD -> master, origin/master, origin/HEAD)
  21. Author: Altin Nimani <altinnimani@localhost.localdomain>
  22. Date:   Thu Oct 4 16:11:05 2018 +0200
  23.  
  24.     update
  25.  
  26. commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  27. Author: Altin Nimani <altinnimani@localhost.localdomain>
  28. Date:   Thu Oct 4 14:43:40 2018 +0200
  29.  
  30.     update
  31. [altinnimani@localhost CPool_Day03_2018]$ git branch
  32. * master
  33. [altinnimani@localhost CPool_Day03_2018]$ git status
  34. On branch master
  35. Your branch is up to date with 'origin/master'.
  36.  
  37. nothing to commit, working tree clean
  38. [altinnimani@localhost CPool_Day03_2018]$ git rebase --interactive
  39. Successfully rebased and updated refs/heads/master.
  40. [altinnimani@localhost CPool_Day03_2018]$ git push --force
  41. --force              --force-with-lease  
  42. [altinnimani@localhost CPool_Day03_2018]$ git push origin master
  43. Everything up-to-date
  44. [altinnimani@localhost CPool_Day03_2018]$ git status
  45. On branch master
  46. Your branch is up to date with 'origin/master'.
  47.  
  48. nothing to commit, working tree clean
  49. [altinnimani@localhost CPool_Day03_2018]$ git log
  50. commit 933c4e63519c8103d5c7e708ffface675fd2f1bd (HEAD -> master, origin/master, origin/HEAD)
  51. Author: Altin Nimani <altinnimani@localhost.localdomain>
  52. Date:   Thu Oct 4 16:11:05 2018 +0200
  53.  
  54.     update
  55.  
  56. commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  57. Author: Altin Nimani <altinnimani@localhost.localdomain>
  58. Date:   Thu Oct 4 14:43:40 2018 +0200
  59.  
  60.     update
  61. [altinnimani@localhost CPool_Day03_2018]$
  62. [altinnimani@localhost CPool_Day03_2018]$ ls
  63. my_isneg.c  my_print_alpha.c  my_print_digits.c  my_print_revalpha.c  my_putchar.c  test.c
  64. [altinnimani@localhost CPool_Day03_2018]$ git push -f
  65. Everything up-to-date
  66. [altinnimani@localhost CPool_Day03_2018]$ ls
  67. my_isneg.c  my_print_alpha.c  my_print_digits.c  my_print_revalpha.c  my_putchar.c  test.c
  68. [altinnimani@localhost CPool_Day03_2018]$ git rm
  69. my_isneg.c           my_print_alpha.c     my_print_digits.c    my_print_revalpha.c  my_putchar.c         test.c              
  70. [altinnimani@localhost CPool_Day03_2018]$ git rm -r --cached ./*
  71. rm 'my_isneg.c'
  72. rm 'my_print_alpha.c'
  73. rm 'my_print_digits.c'
  74. rm 'my_print_revalpha.c'
  75. rm 'my_putchar.c'
  76. rm 'test.c'
  77. [altinnimani@localhost CPool_Day03_2018]$ git commit -m"honestly idk"; git push -f
  78. [master be007cc] honestly idk
  79.  Committer: Altin Nimani <altinnimani@localhost.localdomain>
  80. Your name and email address were configured automatically based
  81. on your username and hostname. Please check that they are accurate.
  82. You can suppress this message by setting them explicitly. Run the
  83. following command and follow the instructions in your editor to edit
  84. your configuration file:
  85.  
  86.     git config --global --edit
  87.  
  88. After doing this, you may fix the identity used for this commit with:
  89.  
  90.     git commit --amend --reset-author
  91.  
  92.  6 files changed, 70 deletions(-)
  93.  delete mode 100644 my_isneg.c
  94.  delete mode 100644 my_print_alpha.c
  95.  delete mode 100644 my_print_digits.c
  96.  delete mode 100644 my_print_revalpha.c
  97.  delete mode 100644 my_putchar.c
  98.  delete mode 100644 test.c
  99. Counting objects: 2, done.
  100. Delta compression using up to 8 threads.
  101. Compressing objects: 100% (1/1), done.
  102. Writing objects: 100% (2/2), 204 bytes | 204.00 KiB/s, done.
  103. Total 2 (delta 0), reused 0 (delta 0)
  104. To git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
  105.    433e2f2..be007cc  master -> master
  106. [altinnimani@localhost CPool_Day03_2018]$ git add
  107. my_isneg.c           my_print_alpha.c     my_print_digits.c    my_print_revalpha.c  my_putchar.c         test.c              
  108. [altinnimani@localhost CPool_Day03_2018]$ git add my_
  109. my_isneg.c           my_print_alpha.c     my_print_digits.c    my_print_revalpha.c  my_putchar.c        
  110. [altinnimani@localhost CPool_Day03_2018]$ git add my_
  111. my_isneg.c           my_print_alpha.c     my_print_digits.c    my_print_revalpha.c  my_putchar.c        
  112. [altinnimani@localhost CPool_Day03_2018]$ git add my_
  113. my_isneg.c           my_print_alpha.c     my_print_digits.c    my_print_revalpha.c  my_putchar.c        
  114. [altinnimani@localhost CPool_Day03_2018]$ git add my_isneg.c my_print_*
  115. [altinnimani@localhost CPool_Day03_2018]$ git status
  116. On branch master
  117. Your branch is up to date with 'origin/master'.
  118.  
  119. Changes to be committed:
  120.   (use "git reset HEAD <file>..." to unstage)
  121.  
  122.     new file:   my_isneg.c
  123.     new file:   my_print_alpha.c
  124.     new file:   my_print_digits.c
  125.     new file:   my_print_revalpha.c
  126.  
  127. Untracked files:
  128.   (use "git add <file>..." to include in what will be committed)
  129.  
  130.     my_putchar.c
  131.     test.c
  132.  
  133. [altinnimani@localhost CPool_Day03_2018]$ cd ..
  134. [altinnimani@localhost tmp]$ ls
  135. CPool_Day03_2018                                                           systemd-private-8caf2c477e6642c4950f7773f52b8b40-rtkit-daemon.service-HuzQII
  136. ssh-0WXZja4wsSlp                                                           Temp-b7429971-be6f-4a51-97f8-059703da9f6a
  137. systemd-private-8caf2c477e6642c4950f7773f52b8b40-bluetooth.service-lu2aJA  tmp_0sjqhcv
  138. systemd-private-8caf2c477e6642c4950f7773f52b8b40-chronyd.service-W27QOs    tmpt9ks9qye
  139. [altinnimani@localhost tmp]$ cd CPool_Day03_2018/
  140. [altinnimani@localhost CPool_Day03_2018]$ git commit -m'readd files'; git push -f
  141. [master 9c0043e] readd files
  142.  Committer: Altin Nimani <altinnimani@localhost.localdomain>
  143. Your name and email address were configured automatically based
  144. on your username and hostname. Please check that they are accurate.
  145. You can suppress this message by setting them explicitly. Run the
  146. following command and follow the instructions in your editor to edit
  147. your configuration file:
  148.  
  149.     git config --global --edit
  150.  
  151. After doing this, you may fix the identity used for this commit with:
  152.  
  153.     git commit --amend --reset-author
  154.  
  155.  4 files changed, 59 insertions(+)
  156.  create mode 100644 my_isneg.c
  157.  create mode 100644 my_print_alpha.c
  158.  create mode 100644 my_print_digits.c
  159.  create mode 100644 my_print_revalpha.c
  160. Counting objects: 6, done.
  161. Delta compression using up to 8 threads.
  162. Compressing objects: 100% (6/6), done.
  163. Writing objects: 100% (6/6), 947 bytes | 473.00 KiB/s, done.
  164. Total 6 (delta 0), reused 4 (delta 0)
  165. To git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
  166.    be007cc..9c0043e  master -> master
  167. [altinnimani@localhost CPool_Day03_2018]$ git status
  168. On branch master
  169. Your branch is up to date with 'origin/master'.
  170.  
  171. Untracked files:
  172.   (use "git add <file>..." to include in what will be committed)
  173.  
  174.     my_putchar.c
  175.     test.c
  176.  
  177. nothing added to commit but untracked files present (use "git add" to track)
  178. [altinnimani@localhost CPool_Day03_2018]$ git log
  179. commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a (HEAD -> master, origin/master, origin/HEAD)
  180. Author: Altin Nimani <altinnimani@localhost.localdomain>
  181. Date:   Thu Oct 4 17:03:01 2018 +0200
  182.  
  183.     readd files
  184.  
  185. commit be007cc79ca1740f271a0e6dfe7be842475cbde9
  186. Author: Altin Nimani <altinnimani@localhost.localdomain>
  187. Date:   Thu Oct 4 17:01:10 2018 +0200
  188.  
  189.     honestly idk
  190.  
  191. commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
  192. Author: Altin Nimani <altinnimani@localhost.localdomain>
  193. Date:   Thu Oct 4 16:53:50 2018 +0200
  194.  
  195.     test
  196.  
  197. commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
  198. Author: Altin Nimani <altinnimani@localhost.localdomain>
  199. Date:   Thu Oct 4 16:11:05 2018 +0200
  200.  
  201.     update
  202.  
  203. commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  204. Author: Altin Nimani <altinnimani@localhost.localdomain>
  205. Date:   Thu Oct 4 14:43:40 2018 +0200
  206.  
  207.     update
  208. [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete
  209. HEAD            ORIG_HEAD       origin/master  
  210. master          origin/HEAD    
  211. [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/HEAD
  212. HEAD            ORIG_HEAD       origin/master  
  213. master          origin/HEAD    
  214. [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/HEAD
  215. error: unable to delete 'origin/HEAD': remote ref does not exist
  216. error: failed to push some refs to 'git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018'
  217. [altinnimani@localhost CPool_Day03_2018]$ git log
  218. commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a (HEAD -> master, origin/master, origin/HEAD)
  219. Author: Altin Nimani <altinnimani@localhost.localdomain>
  220. Date:   Thu Oct 4 17:03:01 2018 +0200
  221.  
  222.     readd files
  223.  
  224. commit be007cc79ca1740f271a0e6dfe7be842475cbde9
  225. Author: Altin Nimani <altinnimani@localhost.localdomain>
  226. Date:   Thu Oct 4 17:01:10 2018 +0200
  227.  
  228.     honestly idk
  229.  
  230. commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
  231. Author: Altin Nimani <altinnimani@localhost.localdomain>
  232. Date:   Thu Oct 4 16:53:50 2018 +0200
  233.  
  234.     test
  235.  
  236. commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
  237. Author: Altin Nimani <altinnimani@localhost.localdomain>
  238. Date:   Thu Oct 4 16:11:05 2018 +0200
  239.  
  240.     update
  241.  
  242. commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  243. Author: Altin Nimani <altinnimani@localhost.localdomain>
  244. Date:   Thu Oct 4 14:43:40 2018 +0200
  245.  
  246.     update
  247. [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/
  248. origin/HEAD     origin/master  
  249. [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/master
  250. error: unable to delete 'origin/master': remote ref does not exist
  251. error: failed to push some refs to 'git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018'
  252. [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/HEAD  --force
  253. error: unable to delete 'origin/HEAD': remote ref does not exist
  254. error: failed to push some refs to 'git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018'
  255. [altinnimani@localhost CPool_Day03_2018]$ git revert
  256. HEAD            master          ORIG_HEAD       origin/HEAD     origin/master  
  257. [altinnimani@localhost CPool_Day03_2018]$ git revert
  258. HEAD            master          ORIG_HEAD       origin/HEAD     origin/master  
  259. [altinnimani@localhost CPool_Day03_2018]$ git log
  260. commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a (HEAD -> master, origin/master, origin/HEAD)
  261. Author: Altin Nimani <altinnimani@localhost.localdomain>
  262. Date:   Thu Oct 4 17:03:01 2018 +0200
  263.  
  264.     readd files
  265.  
  266. commit be007cc79ca1740f271a0e6dfe7be842475cbde9
  267. Author: Altin Nimani <altinnimani@localhost.localdomain>
  268. Date:   Thu Oct 4 17:01:10 2018 +0200
  269.  
  270.     honestly idk
  271.  
  272. commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
  273. Author: Altin Nimani <altinnimani@localhost.localdomain>
  274. Date:   Thu Oct 4 16:53:50 2018 +0200
  275.  
  276.     test
  277.  
  278. commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
  279. Author: Altin Nimani <altinnimani@localhost.localdomain>
  280. Date:   Thu Oct 4 16:11:05 2018 +0200
  281.  
  282.     update
  283.  
  284. commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  285. Author: Altin Nimani <altinnimani@localhost.localdomain>
  286. Date:   Thu Oct 4 14:43:40 2018 +0200
  287.  
  288.     update
  289. [altinnimani@localhost CPool_Day03_2018]$ git diff
  290. HEAD            master          ORIG_HEAD       origin/HEAD     origin/master  
  291. [altinnimani@localhost CPool_Day03_2018]$ git diff
  292. HEAD            master          ORIG_HEAD       origin/HEAD     origin/master  
  293. [altinnimani@localhost CPool_Day03_2018]$ tig
  294. [altinnimani@localhost CPool_Day03_2018]$ git revert
  295. HEAD            master          ORIG_HEAD       origin/HEAD     origin/master  
  296. [altinnimani@localhost CPool_Day03_2018]$ git revert
  297. HEAD            master          ORIG_HEAD       origin/HEAD     origin/master  
  298. [altinnimani@localhost CPool_Day03_2018]$ git revert ^C
  299. [altinnimani@localhost CPool_Day03_2018]$ git revert 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  300. [master 4febdda] Revert "update"
  301.  Committer: Altin Nimani <altinnimani@localhost.localdomain>
  302. Your name and email address were configured automatically based
  303. on your username and hostname. Please check that they are accurate.
  304. You can suppress this message by setting them explicitly. Run the
  305. following command and follow the instructions in your editor to edit
  306. your configuration file:
  307.  
  308.     git config --global --edit
  309.  
  310. After doing this, you may fix the identity used for this commit with:
  311.  
  312.     git commit --amend --reset-author
  313.  
  314.  2 files changed, 29 deletions(-)
  315.  delete mode 100644 my_print_alpha.c
  316.  delete mode 100644 my_print_revalpha.c
  317. [altinnimani@localhost CPool_Day03_2018]$ git status
  318. On branch master
  319. Your branch is ahead of 'origin/master' by 1 commit.
  320.   (use "git push" to publish your local commits)
  321.  
  322. Untracked files:
  323.   (use "git add <file>..." to include in what will be committed)
  324.  
  325.     my_putchar.c
  326.     test.c
  327.  
  328. nothing added to commit but untracked files present (use "git add" to track)
  329. [altinnimani@localhost CPool_Day03_2018]$ git push --force
  330. Counting objects: 2, done.
  331. Delta compression using up to 8 threads.
  332. Compressing objects: 100% (2/2), done.
  333. Writing objects: 100% (2/2), 276 bytes | 276.00 KiB/s, done.
  334. Total 2 (delta 1), reused 0 (delta 0)
  335. To git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
  336.    9c0043e..4febdda  master -> master
  337. [altinnimani@localhost CPool_Day03_2018]$ git log
  338. commit 4febddae4872d4ab02e00ed4aed2715441f248af (HEAD -> master, origin/master, origin/HEAD)
  339. Author: Altin Nimani <altinnimani@localhost.localdomain>
  340. Date:   Thu Oct 4 17:09:38 2018 +0200
  341.  
  342.     Revert "update"
  343.    
  344.     This reverts commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74.
  345.  
  346. commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a
  347. Author: Altin Nimani <altinnimani@localhost.localdomain>
  348. Date:   Thu Oct 4 17:03:01 2018 +0200
  349.  
  350.     readd files
  351.  
  352. commit be007cc79ca1740f271a0e6dfe7be842475cbde9
  353. Author: Altin Nimani <altinnimani@localhost.localdomain>
  354. Date:   Thu Oct 4 17:01:10 2018 +0200
  355.  
  356.     honestly idk
  357.  
  358. commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
  359. Author: Altin Nimani <altinnimani@localhost.localdomain>
  360. Date:   Thu Oct 4 16:53:50 2018 +0200
  361.  
  362.     test
  363.  
  364. commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
  365. Author: Altin Nimani <altinnimani@localhost.localdomain>
  366. Date:   Thu Oct 4 16:11:05 2018 +0200
  367.  
  368.     update
  369.  
  370. commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
  371. Author: Altin Nimani <altinnimani@localhost.localdomain>
  372. Date:   Thu Oct 4 14:43:40 2018 +0200
  373.  
  374.     update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement