Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ➜ code
- ➜ code git clone https://github.com/openebs/CITF.git
- Cloning into 'CITF'...
- remote: Enumerating objects: 25, done.
- remote: Counting objects: 100% (25/25), done.
- remote: Compressing objects: 100% (15/15), done.
- remote: Total 6957 (delta 10), reused 22 (delta 10), pack-reused 6932
- Receiving objects: 100% (6957/6957), 8.03 MiB | 358.00 KiB/s, done.
- Resolving deltas: 100% (3579/3579), done.
- ➜ code git remote add devel git@github.com:sayanchowdhury/CITF.git
- ➜ code cd CITF
- ➜ CITF git:(master) git remote add devel https://github.com/sayanchowdhury/CITF.git
- ➜ CITF git:(master) git remote -v
- devel https://github.com/sayanchowdhury/CITF.git (fetch)
- devel https://github.com/sayanchowdhury/CITF.git (push)
- origin https://github.com/openebs/CITF.git (fetch)
- origin https://github.com/openebs/CITF.git (push)
- ➜ CITF git:(master) git checkout -b fix-readme-changes
- Switched to a new branch 'fix-readme-changes'
- ➜ CITF git:(fix-readme-changes) vim README.md
- ➜ CITF git:(fix-readme-changes) git checkout master
- Switched to branch 'master'
- Your branch is up to date with 'origin/master'.
- ➜ CITF git:(master) git branch
- ➜ CITF git:(master) git log
- ➜ CITF git:(master) git branch
- ➜ CITF git:(master) git checkout fix-readme-changes
- Switched to branch 'fix-readme-changes'
- ➜ CITF git:(fix-readme-changes) git checkout -b fix-readme-changes
- fatal: A branch named 'fix-readme-changes' already exists.
- ➜ CITF git:(fix-readme-changes) vim README.md
- ➜ CITF git:(fix-readme-changes) ✗ git diff
- ➜ CITF git:(fix-readme-changes) ✗ vim README.md
- ➜ CITF git:(fix-readme-changes) ✗ git diff
- ➜ CITF git:(fix-readme-changes) ✗ git add README.md
- ➜ CITF git:(fix-readme-changes) ✗ git diff
- ➜ CITF git:(fix-readme-changes) ✗ git diff --staged
- ➜ CITF git:(fix-readme-changes) ✗ git commit -m "Remove the build status line from README"
- [fix-readme-changes 068ce49] Remove the build status line from README
- 1 file changed, 3 insertions(+), 1 deletion(-)
- ➜ CITF git:(fix-readme-changes) git log
- ➜ CITF git:(fix-readme-changes) git checkout master
- Switched to branch 'master'
- Your branch is up to date with 'origin/master'.
- ➜ CITF git:(master) git log
- ➜ CITF git:(master) git checkout fix-readme-changes
- Switched to branch 'fix-readme-changes'
- ➜ CITF git:(fix-readme-changes) git log
- ➜ CITF git:(fix-readme-changes) vim Makefile
- ➜ CITF git:(fix-readme-changes) ✗ vim README.md
- ➜ CITF git:(fix-readme-changes) ✗ git diff
- ➜ CITF git:(fix-readme-changes) ✗ git status
- On branch fix-readme-changes
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: Makefile
- modified: README.md
- no changes added to commit (use "git add" and/or "git commit -a")
- ➜ CITF git:(fix-readme-changes) ✗ git add Makefile
- ➜ CITF git:(fix-readme-changes) ✗ git diff
- ➜ CITF git:(fix-readme-changes) ✗ git diff --staged
- ➜ CITF git:(fix-readme-changes) ✗ git status
- On branch fix-readme-changes
- Changes to be committed:
- (use "git reset HEAD <file>..." to unstage)
- modified: Makefile
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: README.md
- ➜ CITF git:(fix-readme-changes) ✗ git commit
- Aborting commit due to empty commit message.
- ➜ CITF git:(fix-readme-changes) ✗ git commit -m "Remove vet from Makefile"
- [fix-readme-changes 79292dc] Remove vet from Makefile
- 1 file changed, 3 deletions(-)
- ➜ CITF git:(fix-readme-changes) ✗ git status
- On branch fix-readme-changes
- Changes not staged for commit:
- (use "git add <file>..." to update what will be committed)
- (use "git checkout -- <file>..." to discard changes in working directory)
- modified: README.md
- no changes added to commit (use "git add" and/or "git commit -a")
- ➜ CITF git:(fix-readme-changes) ✗ git add README.md
- ➜ CITF git:(fix-readme-changes) ✗ git status
- On branch fix-readme-changes
- Changes to be committed:
- (use "git reset HEAD <file>..." to unstage)
- modified: README.md
- ➜ CITF git:(fix-readme-changes) ✗ git diff --staged
- ➜ CITF git:(fix-readme-changes) ✗ git commit -m "Remove another build line from README.md"
- [fix-readme-changes e89ee48] Remove another build line from README.md
- 1 file changed, 3 deletions(-)
- ➜ CITF git:(fix-readme-changes) git log
- ➜ CITF git:(fix-readme-changes) git branch
- ➜ CITF git:(fix-readme-changes) git remote -v
- devel https://github.com/sayanchowdhury/CITF.git (fetch)
- devel https://github.com/sayanchowdhury/CITF.git (push)
- origin https://github.com/openebs/CITF.git (fetch)
- origin https://github.com/openebs/CITF.git (push)
- ➜ CITF git:(fix-readme-changes) git remote set-url devel git@github.com:sayanchowdhury/CITF.git
- ➜ CITF git:(fix-readme-changes)
- ➜ CITF git:(fix-readme-changes) git remote set-url origin git@github.com:openebs/CITF.git
- ➜ CITF git:(fix-readme-changes) git remote set-url origin git@github.com:openebs/CITF.git
- ➜ CITF git:(fix-readme-changes) git remote -v
- devel git@github.com:sayanchowdhury/CITF.git (fetch)
- devel git@github.com:sayanchowdhury/CITF.git (push)
- origin git@github.com:openebs/CITF.git (fetch)
- origin git@github.com:openebs/CITF.git (push)
- ➜ CITF git:(fix-readme-changes)
- ➜ CITF git:(fix-readme-changes) git push origin fix-readme-changes
- ERROR: Permission to openebs/CITF.git denied to sayanchowdhury.
- fatal: Could not read from remote repository.
- Please make sure you have the correct access rights
- and the repository exists.
- ➜ CITF git:(fix-readme-changes) git push devel fix-readme-changes
- Counting objects: 79, done.
- Delta compression using up to 4 threads.
- Compressing objects: 100% (50/50), done.
- Writing objects: 100% (79/79), 12.33 KiB | 12.33 MiB/s, done.
- Total 79 (delta 43), reused 62 (delta 29)
- remote: Resolving deltas: 100% (43/43), completed with 5 local objects.
- remote:
- remote: Create a pull request for 'fix-readme-changes' on GitHub by visiting:
- remote: https://github.com/sayanchowdhury/CITF/pull/new/fix-readme-changes
- remote:
- To github.com:sayanchowdhury/CITF.git
- * [new branch] fix-readme-changes -> fix-readme-changes
- ➜ CITF git:(fix-readme-changes) git pull --rebase origin master
- ➜ CITF git:(fix-readme-changes) git checkout master
- Switched to branch 'master'
- Your branch is up to date with 'origin/master'.
- ➜ CITF git:(master) git pull --rebase origin master
- remote: Enumerating objects: 5, done.
- remote: Counting objects: 100% (5/5), done.
- remote: Compressing objects: 100% (5/5), done.
- remote: Total 5 (delta 0), reused 4 (delta 0), pack-reused 0
- Unpacking objects: 100% (5/5), done.
- From github.com:openebs/CITF
- * branch master -> FETCH_HEAD
- 937eecc..457c09f master -> origin/master
- Updating 937eecc..457c09f
- Fast-forward
- utils/k8s/k8s.go | 19 +++++++++++++++++++
- 1 file changed, 19 insertions(+)
- Current branch master is up to date.
- ➜ CITF git:(master) git checkout fix-readme-changes
- Switched to branch 'fix-readme-changes'
- ➜ CITF git:(fix-readme-changes) git rebase -i master
- Successfully rebased and updated refs/heads/fix-readme-changes.
- ➜ CITF git:(fix-readme-changes) git log
- ➜ CITF git:(fix-readme-changes) git push devel fix-readme-changes
- To github.com:sayanchowdhury/CITF.git
- ! [rejected] fix-readme-changes -> fix-readme-changes (non-fast-forward)
- error: failed to push some refs to 'git@github.com:sayanchowdhury/CITF.git'
- hint: Updates were rejected because the tip of your current branch is behind
- hint: its remote counterpart. Integrate the remote changes (e.g.
- hint: 'git pull ...') before pushing again.
- hint: See the 'Note about fast-forwards' in 'git push --help' for details.
- ➜ CITF git:(fix-readme-changes) git push -f devel fix-readme-changes
- Counting objects: 14, done.
- Delta compression using up to 4 threads.
- Compressing objects: 100% (14/14), done.
- Writing objects: 100% (14/14), 1.62 KiB | 1.62 MiB/s, done.
- Total 14 (delta 9), reused 0 (delta 0)
- remote: Resolving deltas: 100% (9/9), completed with 5 local objects.
- To github.com:sayanchowdhury/CITF.git
- + e89ee48...611b82c fix-readme-changes -> fix-readme-changes (forced update)
- ➜ CITF git:(fix-readme-changes) git relog
- git: 'relog' is not a git command. See 'git --help'.
- The most similar command is
- reflog
- ➜ CITF git:(fix-readme-changes) git reflog
- ➜ CITF git:(fix-readme-changes) git remote -v
- devel git@github.com:sayanchowdhury/CITF.git (fetch)
- devel git@github.com:sayanchowdhury/CITF.git (push)
- origin git@github.com:openebs/CITF.git (fetch)
- origin git@github.com:openebs/CITF.git (push)
- ➜ CITF git:(fix-readme-changes)
Add Comment
Please, Sign In to add comment