Comments (9)
I agree @JordanAdams, for now I created an alias in my shell:
function gitm {
args="$@"
meta exec "git $args"
}
I use my commands like:
gitm st
gitm co branch
👍
from meta-git.
meta exec "alias"
?
from meta-git.
Considering git st
as an alias to git status
.
Executing meta git st
is much better than meta exec "git st"
.
Don't you agree?
from meta-git.
These are aliases in general, not particular to git. Unfortunately, your aliases are determined by your local ~/.bashrc, ~/.bash_profile, ~/.zshrc, etc, file and there's no easy way to assume what shell or profile file someone will be depending on for normal use. Since we use child_process.exec, essentially, to execute these processes, a new shell is being spawned which will not have access to the aliases that would otherwise be set up by these files.
Happy to field a PR for something that would implement making it work, but it was a bit to bite off last I looked into it.
from meta-git.
Usually these alias is configured directly from git using git config --global alias.st status
or git config alias.st status
.
This configuration uses git config file in .git/config
or ~/.gitconfig
to save this settings:
The file looks like:
...
[alias]
co = checkout
st = status
...
Maybe using this config file could be possible to extends to use git's aliases, right?
from meta-git.
from meta-git.
Would it be simpler to just make meat-git
act as a super thin passthrough for git
? Essentially meta git [args]
will just perform git [args]
across each repo. This would allow for full feature parity with git
and any aliases the user has set up.
from meta-git.
from meta-git.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from meta-git.
Related Issues (20)
- allow `meta git clone --single-branch --branch <branch name>` HOT 2
- Commands against a subset of repos HOT 1
- meta git clone repoUrl dirname HOT 2
- meta fails to create annotated tag with -m option using double quotes HOT 7
- Can't use the --set-upstream option HOT 8
- give better warning when git rejecting auth due to no public key HOT 1
- meta git update fails with "TypeError: Cannot read property 'projects' of null" in metaGitUpdate.js:16 HOT 3
- feat req - add path to meta git status HOT 7
- Problem running `pull --rebase origin master` HOT 2
- Action required: Greenkeeper could not be activated 🚨
- Difference between `meta git <command>` and `meta exec "git <command>"` HOT 1
- Is there a way to add meta git rebase to the command set? HOT 1
- Run git commands on all branches HOT 1
- meta git ls-files HOT 1
- meta git pull should accept any input HOT 1
- meta git commit broken on windows HOT 6
- add `meta git fetch` HOT 2
- Dependency Dashboard HOT 1
- Injection vulnerability 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 meta-git.