Posts

How to submit edited changes git review

Clone from git $ git clone https://github.com/openstack/cinder.git Cloning into 'cinder'... remote: Counting objects: 42771, done. remote: Compressing objects: 100% (38/38), done. remote: Total 42771 (delta 17), reused 4 (delta 0) Receiving objects: 100% (42771/42771), 20.94 MiB | 52.00 KiB/s, done. Resolving deltas: 100% (27315/27315), done. Checking connectivity... done. Go to cinder directory $  cd cinder Get the latest Patch Set $ git fetch https://review.openstack.org/openstack/cinder refs/changes/12/110312/4 && git checkout FETCH_HEAD * branch refs/changes/12/110312/4 -> FETCH_HEAD Note: checking out 'FETCH_HEAD'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by p...

How to set git editor always as VIM

Please Just try $ git config --global core.editor "vim"

How to install and use vim editor in ubuntu

Just try this  $  sudo apt-get install vim $  vim <file name> Exit Commands :wq Write file to disk and quit the editor :q! Quit (no warning) :q Quit (a warning is printed if a modified file has not been saved) Opening a New File   Step 1 type vim filename (create a file named filename) Step 2 type i ( switch to insert mode) Step 3 enter text (enter your program) Step 4 hit Esc key (switch back to command mode) Step 5 type :wq (write file and exit vim) Editing the Existing File Step 1 type vim filename (edit the existing file named filename) Step 2 move around the file using h/j/k/l key or any appropriate command                                h Moves the cursor one character to the left                           ...

How to remove unwanted files from git after git commit

Please go to directory and run this $ git rm /home/sanu/cinder/cinder/volume/drivers/emc/emc_vnx_cli.py After editing recommitte your work $ git commit -a --amend $ git review -v

How to display view count in Blogger

Image
                                       1) http://www.histats.com 2)Register 3)Login 4)Add a website 5)Click Website url 6)Click counter CODE 7)Click add new counter and select model                                                                            8)Copy standard content                          9)Click Layout option i...

How to clone from github

Image
   Copy the HTTPS clone URL from github $ git clone https://github.com/openstack/glance.git

How to save output of git diff in local file

Image
you can get output result in local file with $ git diff > /home/sanu/myfile.diff