Comments (6)
Yeah. This is super annoying. It's because mv is using git-mv. The only way around it is to use command mv file1 file2
. You may also be able to realias mv to command mv
but I haven't tried.
I've considered removing the mv alias due to the confusion here.
from git-sh.
Solution would be to test if file is tracked or not and act accordingly. As a workaround you can use noop
: && mv file1 file2.
from git-sh.
The following lines in my .gitshrc make mv
/rm
a bit more sane, without any changes to git-sh
itself:
unalias mv
unalias rm
alias gmv='git mv'
alias grm='git rm'
from git-sh.
Thanks for that!
from git-sh.
There's a note about this in the README. Closing.
from git-sh.
I've worked up a couple bash functions for .gitshrc that will route tracked files to git mv/rm and untracked files to their bash counterparts.
https://github.com/phatblat/dotfiles/blob/master/.gitshrc#L66
from git-sh.
Related Issues (20)
- chsh does not work HOT 1
- Custom-formatted log alias fails when loading git sh HOT 2
- Tag a new stable version (1.2? 1.1.1?) for Homebrew HOT 3
- Compiling on Cygwin HOT 1
- Feature: Make 'cd ~' go to project root directory HOT 3
- git-sh disables bash-completion for git HOT 1
- set window title with escape sequences
- Accept aliasses of hub HOT 1
- Provide an implementation for zsh HOT 8
- la="git log --pretty="format:%ad %h (%an): %s" --date=short" creates syntax error
- how to uninstall
- Let `enter` output `git status` HOT 1
- hash-object shortcut missing HOT 2
- No alias for 'git push'? HOT 1
- Maintained fork? HOT 1
- Feature: add numbers to file listings HOT 1
- Enable wiki for customization recipes HOT 1
- Syntax error when exporting ~/.gitconfig aliases as top-level commands HOT 1
- Feature: add difftool command HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-sh.