I generally use 'u' to do undo in vi editor. The problem is that it only does one level of undo.
Is it possible to recursively undo all the changes in vi editor till we reach the original stage.
Just for info, If you use vim, the command "u" will do exactly what you want.
to redo the change in vim,
In vi, "u" is like a toggle between undo and redo.
HI folks,
I have just deleted a folder which i need it back. I am not a big
unix user so any help is appreciated. The thing is that i had found
images in a folder:
./home/tom/.kde/share/cache/http/b/.jpg
as you can see these images should not really be here.
When i asked a guy in... (7 Replies)
Hi,
How can I undo installation of a package on AIX 4.3 properly?
It's an install script. On linux, I usually just kill the process and delete from disk with this command "find .... exec rm -r {}\;". And it usually works. Can I do the same with AIX 4.3?
Thanks,
Itik (2 Replies)
Hi All,
I'm a newbie to system administration, I'd like to know how to check the logs (what update was installed last) , and I'd like to know how to undo the last update on the fedora 9 system ( kindof an equivalent to system restore in windows).
I have a HP 22 inch monitor, when I installed... (3 Replies)
Hi
I had extended one of the FS yesterday as rsync was failing and the temp solution was to extend it to 4GB while we worked on cron script.
spthrv01:/root# bdf /p05
Filesystem kbytes used avail %used Mounted on
/dev/vg232/lvol1 130940928 82208608 48385792 63% /p05
... (5 Replies)
Hi. Newbie here....so Unix for Dummies question for sure.
I was compiling a piece of software and having problems and somebody suggested:
sudo ln -s /usr/X11 /usr/X11R6
Didn't work. How do I undo this?
I am on a Mac OS X snow leopard. I figure it is something with the unlink command... (7 Replies)
I installed Solaris 11 Express on my machine and connected to it remotely using putty. I then run the svcadm disable /network/physical:nwam command to stop the NWAM service.
Now I cannot connect to the Solaris machine remotely anymore, but I have physical access to it as well.
How do I undo... (1 Reply)
I have a file with two columns (output from Tivoli Storage Manager) where each column has 13 character spaces and they are separated by 5 spaces. The columns are schedule names and node names and many of them are longer than 13 characters so they get hyphenated by TSM during the output. I... (3 Replies)
Hello!
As a totally newbie I was testing 'mount' command but it doesn't worked for me.
then finally I used this commend above 'mount /test / ' - and sever doesn't respond now :/
Is it possible to undo somehow this commanand? (5 Replies)
Hi,
Could anyone please advise if its possible in unix to undo the changes for a file that has been overwrriten.
By mistake i have overwritten a file and now i need the original file, is there a way?
Please Help!!! (2 Replies)
Discussion started by: mail.chiranjit
2 Replies
LEARN ABOUT DEBIAN
stg-refresh
STG-REFRESH(1) StGit Manual STG-REFRESH(1)NAME
stg-refresh - Generate a new commit for the current patch
SYNOPSIS
stg refresh [options] [<files or dirs>]
DESCRIPTION
Include the latest work tree and index changes in the current patch. This command generates a new git commit object for the patch; the old
commit is no longer visible.
You may optionally list one or more files or directories relative to the current working directory; if you do, only matching files will be
updated.
Behind the scenes, stg refresh first creates a new temporary patch with your updates, and then merges that patch into the patch you asked
to have refreshed. If you asked to refresh a patch other than the topmost patch, there can be conflicts; in that case, the temporary patch
will be left for you to take care of, for example with stg squash.
The creation of the temporary patch is recorded in a separate entry in the patch stack log; this means that one undo step will undo the
merge between the other patch and the temp patch, and two undo steps will additionally get rid of the temp patch.
OPTIONS -u, --update
Only update the current patch files.
-i, --index
Instead of setting the patch top to the current contents of the worktree, set it to the current contents of the index.
-p PATCH, --patch PATCH
Refresh (applied) PATCH instead of the top patch.
-e, --edit
Invoke an editor for the patch description.
-a NOTE, --annotate NOTE
Annotate the patch log entry.
-m MESSAGE, --message MESSAGE
Use MESSAGE instead of invoking the editor.
-f FILE, --file FILE
Use the contents of FILE instead of invoking the editor. (If FILE is "-", write to stdout.)
--sign
Add a "Signed-off-by:" to the end of the patch.
--ack
Add an "Acked-by:" line to the end of the patch.
--author "NAME <EMAIL>"
Set the author details.
--authname NAME
Set the author name.
--authemail EMAIL
Set the author email.
--authdate DATE
Set the author date.
STGIT
Part of the StGit suite - see linkman:stg[1]
StGit 03/13/2012 STG-REFRESH(1)