1
vote
1answer
283 views

Git Alias 'Permission Denied'

I'm getting a 'permission denied' error on a git alias. It works with root but not my user account: $ andy@ubuntu:/usr/local/bin$ sudo git config --global alias.lg "log --color --graph ...
15
votes
4answers
3k views

How can I create an alias for a command that includes a space?

Most of my my aliases are of this form: alias p='pwd' I want to alias git commit so that it does git commit -v But trying to create an alias with a space gives an error: $ alias 'git commit'='git ...
3
votes
2answers
174 views

place the aliased version of an existing command in /usr/bin/

I use Vim a lot, and I know how I can start vim in insert mode. So I have an alias named vii in my .bash_aliases file. On other hand I use Git a lot too, and I have this line in my .gitconfig: ...
5
votes
4answers
141 views

Change command-line “environment” to programs command

In a console, is it possible to change into a commands "environment"? To explain, I take "git" as an example. While programming and using a git repository, I change to the repos path and then do many ...
3
votes
1answer
371 views

Git - remove deleted files

I'm using this simple git alias rmdel = "!git rm $(git ls-files -d)" meant "remove deleted", i.e. to remove from the staging area all files deleted from the file system. It works fine except ...