Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git status
- On branch master
- Your branch is up to date with 'origin/master'.
- nothing to commit, working tree clean
- [altinnimani@localhost CPool_Day03_2018]$ git remote show origin
- * remote origin
- Fetch URL: git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
- Push URL: git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
- HEAD branch: master
- Remote branch:
- master tracked
- Local branch configured for 'git pull':
- master merges with remote master
- Local ref configured for 'git push':
- master pushes to master (up to date)
- [altinnimani@localhost CPool_Day03_2018]$ git reflog
- 933c4e6 (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: clone: from git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
- [altinnimani@localhost CPool_Day03_2018]$ git log
- commit 933c4e63519c8103d5c7e708ffface675fd2f1bd (HEAD -> master, origin/master, origin/HEAD)
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:11:05 2018 +0200
- update
- commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 14:43:40 2018 +0200
- update
- [altinnimani@localhost CPool_Day03_2018]$ git branch
- * master
- [altinnimani@localhost CPool_Day03_2018]$ git status
- On branch master
- Your branch is up to date with 'origin/master'.
- nothing to commit, working tree clean
- [altinnimani@localhost CPool_Day03_2018]$ git rebase --interactive
- Successfully rebased and updated refs/heads/master.
- [altinnimani@localhost CPool_Day03_2018]$ git push --force
- --force --force-with-lease
- [altinnimani@localhost CPool_Day03_2018]$ git push origin master
- Everything up-to-date
- [altinnimani@localhost CPool_Day03_2018]$ git status
- On branch master
- Your branch is up to date with 'origin/master'.
- nothing to commit, working tree clean
- [altinnimani@localhost CPool_Day03_2018]$ git log
- commit 933c4e63519c8103d5c7e708ffface675fd2f1bd (HEAD -> master, origin/master, origin/HEAD)
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:11:05 2018 +0200
- update
- commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 14:43:40 2018 +0200
- update
- [altinnimani@localhost CPool_Day03_2018]$
- [altinnimani@localhost CPool_Day03_2018]$ ls
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c test.c
- [altinnimani@localhost CPool_Day03_2018]$ git push -f
- Everything up-to-date
- [altinnimani@localhost CPool_Day03_2018]$ ls
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c test.c
- [altinnimani@localhost CPool_Day03_2018]$ git rm
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c test.c
- [altinnimani@localhost CPool_Day03_2018]$ git rm -r --cached ./*
- rm 'my_isneg.c'
- rm 'my_print_alpha.c'
- rm 'my_print_digits.c'
- rm 'my_print_revalpha.c'
- rm 'my_putchar.c'
- rm 'test.c'
- [altinnimani@localhost CPool_Day03_2018]$ git commit -m"honestly idk"; git push -f
- [master be007cc] honestly idk
- Committer: Altin Nimani <altinnimani@localhost.localdomain>
- Your name and email address were configured automatically based
- on your username and hostname. Please check that they are accurate.
- You can suppress this message by setting them explicitly. Run the
- following command and follow the instructions in your editor to edit
- your configuration file:
- git config --global --edit
- After doing this, you may fix the identity used for this commit with:
- git commit --amend --reset-author
- 6 files changed, 70 deletions(-)
- delete mode 100644 my_isneg.c
- delete mode 100644 my_print_alpha.c
- delete mode 100644 my_print_digits.c
- delete mode 100644 my_print_revalpha.c
- delete mode 100644 my_putchar.c
- delete mode 100644 test.c
- Counting objects: 2, done.
- Delta compression using up to 8 threads.
- Compressing objects: 100% (1/1), done.
- Writing objects: 100% (2/2), 204 bytes | 204.00 KiB/s, done.
- Total 2 (delta 0), reused 0 (delta 0)
- To git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
- 433e2f2..be007cc master -> master
- [altinnimani@localhost CPool_Day03_2018]$ git add
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c test.c
- [altinnimani@localhost CPool_Day03_2018]$ git add my_
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c
- [altinnimani@localhost CPool_Day03_2018]$ git add my_
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c
- [altinnimani@localhost CPool_Day03_2018]$ git add my_
- my_isneg.c my_print_alpha.c my_print_digits.c my_print_revalpha.c my_putchar.c
- [altinnimani@localhost CPool_Day03_2018]$ git add my_isneg.c my_print_*
- [altinnimani@localhost CPool_Day03_2018]$ git status
- On branch master
- Your branch is up to date with 'origin/master'.
- Changes to be committed:
- (use "git reset HEAD <file>..." to unstage)
- new file: my_isneg.c
- new file: my_print_alpha.c
- new file: my_print_digits.c
- new file: my_print_revalpha.c
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- my_putchar.c
- test.c
- [altinnimani@localhost CPool_Day03_2018]$ cd ..
- [altinnimani@localhost tmp]$ ls
- CPool_Day03_2018 systemd-private-8caf2c477e6642c4950f7773f52b8b40-rtkit-daemon.service-HuzQII
- ssh-0WXZja4wsSlp Temp-b7429971-be6f-4a51-97f8-059703da9f6a
- systemd-private-8caf2c477e6642c4950f7773f52b8b40-bluetooth.service-lu2aJA tmp_0sjqhcv
- systemd-private-8caf2c477e6642c4950f7773f52b8b40-chronyd.service-W27QOs tmpt9ks9qye
- [altinnimani@localhost tmp]$ cd CPool_Day03_2018/
- [altinnimani@localhost CPool_Day03_2018]$ git commit -m'readd files'; git push -f
- [master 9c0043e] readd files
- Committer: Altin Nimani <altinnimani@localhost.localdomain>
- Your name and email address were configured automatically based
- on your username and hostname. Please check that they are accurate.
- You can suppress this message by setting them explicitly. Run the
- following command and follow the instructions in your editor to edit
- your configuration file:
- git config --global --edit
- After doing this, you may fix the identity used for this commit with:
- git commit --amend --reset-author
- 4 files changed, 59 insertions(+)
- create mode 100644 my_isneg.c
- create mode 100644 my_print_alpha.c
- create mode 100644 my_print_digits.c
- create mode 100644 my_print_revalpha.c
- Counting objects: 6, done.
- Delta compression using up to 8 threads.
- Compressing objects: 100% (6/6), done.
- Writing objects: 100% (6/6), 947 bytes | 473.00 KiB/s, done.
- Total 6 (delta 0), reused 4 (delta 0)
- To git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
- be007cc..9c0043e master -> master
- [altinnimani@localhost CPool_Day03_2018]$ git status
- On branch master
- Your branch is up to date with 'origin/master'.
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- my_putchar.c
- test.c
- nothing added to commit but untracked files present (use "git add" to track)
- [altinnimani@localhost CPool_Day03_2018]$ git log
- commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a (HEAD -> master, origin/master, origin/HEAD)
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:03:01 2018 +0200
- readd files
- commit be007cc79ca1740f271a0e6dfe7be842475cbde9
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:01:10 2018 +0200
- honestly idk
- commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:53:50 2018 +0200
- test
- commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:11:05 2018 +0200
- update
- commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 14:43:40 2018 +0200
- update
- [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete
- HEAD ORIG_HEAD origin/master
- master origin/HEAD
- [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/HEAD
- HEAD ORIG_HEAD origin/master
- master origin/HEAD
- [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/HEAD
- error: unable to delete 'origin/HEAD': remote ref does not exist
- error: failed to push some refs to 'git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018'
- [altinnimani@localhost CPool_Day03_2018]$ git log
- commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a (HEAD -> master, origin/master, origin/HEAD)
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:03:01 2018 +0200
- readd files
- commit be007cc79ca1740f271a0e6dfe7be842475cbde9
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:01:10 2018 +0200
- honestly idk
- commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:53:50 2018 +0200
- test
- commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:11:05 2018 +0200
- update
- commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 14:43:40 2018 +0200
- update
- [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/
- origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/master
- error: unable to delete 'origin/master': remote ref does not exist
- error: failed to push some refs to 'git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018'
- [altinnimani@localhost CPool_Day03_2018]$ git push origin --delete origin/HEAD --force
- error: unable to delete 'origin/HEAD': remote ref does not exist
- error: failed to push some refs to 'git@git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018'
- [altinnimani@localhost CPool_Day03_2018]$ git revert
- HEAD master ORIG_HEAD origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ git revert
- HEAD master ORIG_HEAD origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ git log
- commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a (HEAD -> master, origin/master, origin/HEAD)
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:03:01 2018 +0200
- readd files
- commit be007cc79ca1740f271a0e6dfe7be842475cbde9
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:01:10 2018 +0200
- honestly idk
- commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:53:50 2018 +0200
- test
- commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:11:05 2018 +0200
- update
- commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 14:43:40 2018 +0200
- update
- [altinnimani@localhost CPool_Day03_2018]$ git diff
- HEAD master ORIG_HEAD origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ git diff
- HEAD master ORIG_HEAD origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ tig
- [altinnimani@localhost CPool_Day03_2018]$ git revert
- HEAD master ORIG_HEAD origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ git revert
- HEAD master ORIG_HEAD origin/HEAD origin/master
- [altinnimani@localhost CPool_Day03_2018]$ git revert ^C
- [altinnimani@localhost CPool_Day03_2018]$ git revert 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- [master 4febdda] Revert "update"
- Committer: Altin Nimani <altinnimani@localhost.localdomain>
- Your name and email address were configured automatically based
- on your username and hostname. Please check that they are accurate.
- You can suppress this message by setting them explicitly. Run the
- following command and follow the instructions in your editor to edit
- your configuration file:
- git config --global --edit
- After doing this, you may fix the identity used for this commit with:
- git commit --amend --reset-author
- 2 files changed, 29 deletions(-)
- delete mode 100644 my_print_alpha.c
- delete mode 100644 my_print_revalpha.c
- [altinnimani@localhost CPool_Day03_2018]$ git status
- On branch master
- Your branch is ahead of 'origin/master' by 1 commit.
- (use "git push" to publish your local commits)
- Untracked files:
- (use "git add <file>..." to include in what will be committed)
- my_putchar.c
- test.c
- nothing added to commit but untracked files present (use "git add" to track)
- [altinnimani@localhost CPool_Day03_2018]$ git push --force
- Counting objects: 2, done.
- Delta compression using up to 8 threads.
- Compressing objects: 100% (2/2), done.
- Writing objects: 100% (2/2), 276 bytes | 276.00 KiB/s, done.
- Total 2 (delta 1), reused 0 (delta 0)
- To git.epitech.eu:/altin.nimani@epitech.eu/CPool_Day03_2018
- 9c0043e..4febdda master -> master
- [altinnimani@localhost CPool_Day03_2018]$ git log
- commit 4febddae4872d4ab02e00ed4aed2715441f248af (HEAD -> master, origin/master, origin/HEAD)
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:09:38 2018 +0200
- Revert "update"
- This reverts commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74.
- commit 9c0043e1dc0d65dd98b21108ff6f19d065241d7a
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:03:01 2018 +0200
- readd files
- commit be007cc79ca1740f271a0e6dfe7be842475cbde9
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 17:01:10 2018 +0200
- honestly idk
- commit 433e2f2b8568d1e0ffe0d199142f6ddc560a538b
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:53:50 2018 +0200
- test
- commit 933c4e63519c8103d5c7e708ffface675fd2f1bd
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 16:11:05 2018 +0200
- update
- commit 6f2637fa3e3af3eb5d6c64293a315f358a6a2e74
- Author: Altin Nimani <altinnimani@localhost.localdomain>
- Date: Thu Oct 4 14:43:40 2018 +0200
- update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement